From 138474e30cffbef1d5a4c0b7fa2365e2739aa8a5 Mon Sep 17 00:00:00 2001 From: mikoto2000 Date: Mon, 29 Apr 2024 21:13:34 +0900 Subject: [PATCH] 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. --- src/compiler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler.ts b/src/compiler.ts index 0c96263..3fae12e 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -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) => {