Skip to content

Commit

Permalink
use shell option to spawn for Windows because it cannot execute scrip…
Browse files Browse the repository at this point in the history
…ts directly
  • Loading branch information
scholarsmate committed Oct 21, 2024
1 parent bd3cbf2 commit 7db96a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ async function executeServer(args: string[]): Promise<ChildProcess> {
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) => {
Expand Down

0 comments on commit 7db96a8

Please sign in to comment.