Home › Recipes
All recipes
3 recipes tagged npx.
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.
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.
Fix Node MCP servers on old Node: 'crypto is not defined', ERR_MODULE_NOT_FOUND 'timers', EBADENGINE node >=24, npx -y h
Tested on Node 14, 16, 18, 20, 22 and 24 with the official server-filesystem, server-memory and server-everything 2.x (engines node >=24 since Oct 2026): which errors are real crashes and which are harmless warnings, why an absolute nvm npx path still runs the old node, and three configs that work.
* Earnings are self-reported and unverified.