create-mcp-use-app: installing dependencies fails on Windows with "spawn npm ENOENT"
Describe the bug
On Windows, create-mcp-use-app can't install dependencies. Accepting the "Install dependencies with npm?" prompt (default: yes) or passing --install ends with:
▲ Package installation failed
spawn npm ENOENT
⚠️ Please run "npm install", "pnpm install", or "bun install" manuallyWith pnpm it fails the same way (spawn pnpm ENOENT).
runPackageManager in libraries/typescript/packages/create-mcp-use-app/src/index.ts calls spawn(packageManager, args, { shell: false }). On Windows, npm and pnpm are .cmd shims. Node only runs .cmd files through a shell, so the install step never starts. e2e/scaffold.mjs and @mcp-use/cli's load-client.ts already use a shell on Windows. The scaffolder's own install step doesn't, and CI doesn't cover it: the Windows e2e job scaffolds without --install and runs the install itself.
To Reproduce
Windows 11, Node 22.22.2, npm 10.9.7, pnpm 11.13.1:
npx --yes [email protected] my-app --template mcp-server --install --no-skills
pnpm dlx [email protected] my-app --template mcp-server --install --no-skillsExpected behavior
Dependencies install with the selected package manager, as they do on macOS and Linux.
I'd like to work on this and will open a PR with a fix and a test.
Source: mcp-use/mcp-use