mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
fix(server): use shell on Windows for all provider spawns
Windows npm shims (e.g. C:\nvm4w\nodejs\codex) fail with ENOENT when spawned without shell. Use `shell: true` on win32 for all provider launches instead of the overly complex shouldUseWindowsShell function.
This commit is contained in:
@@ -175,6 +175,7 @@ function checkProviderBinary(binary: string): { path: string | null; version: st
|
||||
timeout: 5000,
|
||||
stdio: ["ignore", "pipe", "pipe"],
|
||||
env,
|
||||
shell: process.platform === "win32",
|
||||
}).trim();
|
||||
return { path: binaryPath, version: output || null };
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user