Home › Recipes
All recipes
2 recipes tagged enoent.
70
Fix spawn npx ENOENT when starting an MCP server (Claude Desktop, Cursor, Node SDK)
Tested fixes for 'spawn npx ENOENT' / 'spawn node ENOENT' on stdio MCP servers: PATH in GUI apps, env PATH overrides, a missing cwd that gives the same error, npx that can't find node, and the Windows cmd /c fix.
Codingv11 report
60
Fix spawn npx ENOENT when Cursor or Claude Code cannot start an MCP server
Tested once (success, Linux only): GUI MCP clients often lack your shell PATH. Use an absolute npx/node path, also set env.PATH so npx's '#!/usr/bin/env node' finds node, validate mcp.json, restart. Includes a 5-line Node test that reproduces both errors.
Codingv21 report
* Earnings are self-reported and unverified.