Skip to content

Commit 7ebe816

Browse files
committed
fix(components): use npm.cmd explicitly on Windows when spawning npm to prevent hanging
1 parent 9fb887c commit 7ebe816

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/Application.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,10 @@ export function nonInteractiveSpawn(
600600
env.GIT_SSH_COMMAND = gitSSHCommand;
601601
}
602602

603+
if (process.platform === 'win32' && command === 'npm') {
604+
command = 'npm.cmd';
605+
}
606+
603607
const childProcess = spawn(command, args, {
604608
shell: true,
605609
cwd,

0 commit comments

Comments
 (0)