From 7db96a80dd9818109585862bc8aa5581f168115b Mon Sep 17 00:00:00 2001 From: Davin Shearer <2205472+scholarsmate@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:22:13 -0400 Subject: [PATCH] use shell option to spawn for Windows because it cannot execute scripts directly --- packages/server/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index 6cc47fb5..018740c1 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -90,6 +90,7 @@ async function executeServer(args: string[]): Promise { cwd: path.dirname(serverScript), stdio: 'ignore', detached: true, + shell: os.platform().startsWith("win"), // use shell on Windows because it can't execute scripts directly }) serverProcess.on('error', (err: Error) => {