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 cfb1e84 commit 70e71dd
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 70e71dd

Please sign in to comment.