We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac5cec0 commit 001181cCopy full SHA for 001181c
1 file changed
scripts/start.js
@@ -9,6 +9,11 @@ const path = require('node:path');
9
10
function runCommand(command, args, options) {
11
return new Promise((resolve, reject) => {
12
+ // On Windows, npm is a batch file and needs a shell
13
+ if (process.platform === 'win32' && command === 'npm') {
14
+ command = `${command}.cmd`;
15
+ options = { ...options, shell: true };
16
+ }
17
const child = spawn(command, args, options);
18
19
// Pipe stderr to the parent process's stderr if it's available.
0 commit comments