fix: EINVAL when spawning cmd files on Windows (#41893)

fix: EINVAL when spawning on Windows
This commit is contained in:
Shelley Vohr
2024-04-19 09:27:58 -04:00
committed by GitHub
parent 67ba30402b
commit c4aeb17245
5 changed files with 12 additions and 6 deletions

View File

@@ -11,7 +11,8 @@ if (require.main === module) {
env: {
...process.env,
npm_config_yes: 'true'
}
},
shell: process.platform === 'win32'
});
child.on('exit', code => process.exit(code));