fix: EINVAL when spawning cmd files on Windows (#41893)
fix: EINVAL when spawning on Windows
This commit is contained in:
parent
67ba30402b
commit
c4aeb17245
5 changed files with 12 additions and 6 deletions
|
@ -10,7 +10,8 @@ if (fs.existsSync(checkPath)) {
|
|||
command.slice(1),
|
||||
{
|
||||
stdio: 'inherit',
|
||||
cwd: checkPath
|
||||
cwd: checkPath,
|
||||
shell: process.platform === 'win32'
|
||||
}
|
||||
);
|
||||
child.on('exit', code => process.exit(code));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue