豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit e0137c2

Browse files
tylerablackhamjaylinski
authored andcommitted
fix: enable shell mode for spawn to resolve Windows EINVAL issue
1 parent e914d60 commit e0137c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/util/exec-file.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ async function execFileWithInheritedOutput(command, args) {
2323
return new Promise((resolve, reject) => {
2424
const resolvedCommand = preferLocalDependencies(command);
2525
const child = childProcess.spawn(resolvedCommand, args, {
26-
stdio: 'inherit'
26+
stdio: 'inherit',
27+
shell: true
2728
});
2829
child.on('exit', code => {
2930
if (code !== 0) {

0 commit comments

Comments
 (0)