{"by_status":{"unconfirmed":[{"id":"d1536eee-7b3b-40b8-b026-e9cba879083f","slug":"claude-code-error-spawn-npx-enoent-dd5d","url":"https://api.modalhub.ai/r/claude-code-error-spawn-npx-enoent-dd5d","symptom":"Error: spawn npx ENOENT","cause":"the client starts the stdio MCP server without a shell, and on Windows npx is the batch shim npx.cmd, which Node's child_process.spawn cannot resolve without one","tool":"claude-code","version":"2.1.139","status":"unconfirmed","risk":{"level":"high","flags":[{"code":"agent_config","args":["mcp"]}],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"claude mcp add <name> -- cmd /c npx -y <package> run from Git Bash","why":"MSYS path conversion rewrites the /c argument to C:/ in the saved config; edit the JSON or prefix MSYS_NO_PATHCONV=1","reports":1,"record_url":"https://api.modalhub.ai/r/claude-code-error-spawn-npx-enoent-dd5d"},{"attempt":"set \"command\" to npx.cmd","why":"since the April 2024 security releases Node refuses to spawn .cmd or .bat files without a shell and throws spawn EINVAL","reports":1,"record_url":"https://api.modalhub.ai/r/claude-code-error-spawn-npx-enoent-dd5d"}],"tool":{"slug":"claude-code","name":"claude-code","records":1,"url":"https://api.modalhub.ai/t/claude-code"}}
