Skip to content

Commit 303ea2e

Browse files
committed
Fix prepare script when npm installing on Windows
1 parent b0afc87 commit 303ea2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prepare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const OVERRIDES_DIR = path.join(__dirname, 'overrides');
2828
(async () => {
2929
console.log('Installing override npm dependencies...');
3030

31-
await spawn('npm', ['install', '--production'], {
31+
await spawn(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['install', '--production'], {
3232
cwd: path.join(OVERRIDES_DIR, 'js'),
3333
stdio: 'inherit'
3434
});

0 commit comments

Comments
 (0)