fix: enable shell mode for spawn to resolve Windows EINVAL issue

This commit is contained in:
Tyler Blackham
2025-12-08 15:26:42 -07:00
committed by Jay Linski
parent e914d6037f
commit e0137c26f2
+2 -1
View File
@@ -23,7 +23,8 @@ async function execFileWithInheritedOutput(command, args) {
return new Promise((resolve, reject) => {
const resolvedCommand = preferLocalDependencies(command);
const child = childProcess.spawn(resolvedCommand, args, {
stdio: 'inherit'
stdio: 'inherit',
shell: true
});
child.on('exit', code => {
if (code !== 0) {