From 0402e47420055d5b4dd4e7ff5e3fa931fc0f71ba Mon Sep 17 00:00:00 2001 From: "pepa.berger" Date: Wed, 18 Mar 2026 12:59:15 +0100 Subject: [PATCH] fix: add shell: true to npm spawn for Windows compatibility On Windows, `spawn('npm', ...)` fails with ENOENT because npm is a .cmd file. Adding `shell: true` resolves this by spawning through the system shell, which correctly locates npm.cmd. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/commands/web.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/web.ts b/src/commands/web.ts index eda4a8f..ce821ef 100644 --- a/src/commands/web.ts +++ b/src/commands/web.ts @@ -289,6 +289,7 @@ function launchProcesses(out: ReturnType): void { cwd: webUiDir, detached: true, stdio: ['ignore', webUiLog, webUiLog], + shell: true, }); webUiProcess.unref();