Bug Report: Error: spawn npx ENOENT when running npx @convex-dev/agent-playground on Windows
Environment
OS: Windows 10 / 11
Node.js: v22.20.0
npm: 11.6.1
Convex project created via:
npm create convex@latest
(React + Vite, no auth)
Steps to Reproduce
Follow the Convex Agent setup guide
Install @convex-dev/agent
Add convex.config.ts
Run npx convex dev
playground.ts
again npx convex dev
Try to launch the Playground:
npx @convex-dev/agent-playground
error
Error: spawn npx ENOENT
at ChildProcess._handle.onexit ...
code: 'ENOENT',
syscall: 'spawn npx',
path: 'npx',
spawnargs: ['vite', 'preview', '--open', '/play/http%3A%2F%2F127.0.0.1%3A3210']
}
Node.js v22.20.0
I reinstalled Node.js and verified PATH — both node and npx work normally.
The issue happens on multiple fresh Convex projects.
maybe its something on my side?
or maybe playground is linux only?

1 Reply
Update: I tested the same command using WSL, and it works perfectly there.