fix: Error: spawn EINVAL on Windows. (#1092)

After `21.7.3`, `20.12.2` and `18.20.2`, the Error: spawn EINVAL started occurring, so I have fixed it.
This commit is contained in:
mikoto2000
2024-04-29 21:13:34 +09:00
committed by GitHub
parent 175bbf13fe
commit 138474e30c
+1
View File
@@ -209,6 +209,7 @@ export class NexeCompiler {
spawn(command, args, {
cwd: this.src,
env: this.env,
shell: true,
stdio: this.log.verbose ? 'inherit' : 'ignore',
})
.once('error', (e: Error) => {