diff --git a/electron/.cache/export-runtime/export-Linux-X64.zip b/electron/.cache/export-runtime/export-Linux-X64.zip deleted file mode 100644 index efe74631..00000000 Binary files a/electron/.cache/export-runtime/export-Linux-X64.zip and /dev/null differ diff --git a/electron/app/utils/servers.ts b/electron/app/utils/servers.ts index c7e1e34b..370ed963 100644 --- a/electron/app/utils/servers.ts +++ b/electron/app/utils/servers.ts @@ -71,13 +71,15 @@ export async function startNextJsServer( let nextjsProcess; if (isDev) { + // Windows: npm is npm.cmd; spawn() needs a shell or ENOENT. nextjsProcess = spawn( - "npm", + process.platform === "win32" ? "npm.cmd" : "npm", ["run", "dev", "--", "-p", port.toString()], { cwd: directory, stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, ...env }, + shell: process.platform === "win32", } ); const nextjsLogPath = path.join(logsDir, "nextjs-server.log");