From e56a2d696fba6ded672d6bcff056cc90e748070b Mon Sep 17 00:00:00 2001 From: alex liu Date: Sat, 23 May 2026 12:04:09 +0800 Subject: [PATCH] fix: add shell:true on Windows to resolve spawn EINVAL with .cmd files --- src/rpc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc.ts b/src/rpc.ts index 9807600..d6b3ad3 100644 --- a/src/rpc.ts +++ b/src/rpc.ts @@ -40,6 +40,7 @@ export class PiConnection { cwd: this.cwd, stdio: ["pipe", "pipe", "pipe"], env: { ...process.env }, + shell: process.platform === "win32", }); this.connected = true;