I’m trying to launch a local instance of n8n on Windows using PowerShell, but I keep hitting an error.
When I run:
bash
npx n8n
the process starts but then fails with this message:
Error: Command “start” not found
Context:
· OS: Windows (PowerShell)
· Method: Running via npx n8n (not globally installed)
Has anyone else encountered this? It seems like the command is trying to execute a start instruction that PowerShell or the environment doesn’t recognize properly. Any suggestions on how to fix this or find a workaround?
This seem quite common after n8n update.
I prefer to run n8n from docker instead to avoid this issue
Have you tried running n8n directly from the install folder?
This is a known npx caching issue, not really a PowerShell problem, npx n8n sometimes runs a stale cached version of the package that doesn’t parse the start argument correctly.
Fix:
npx clear-npx-cache npx n8n@latest start
Or better long-term: install it properly instead of npx each time
npm install -g n8n n8n
That avoids this whole class of bug. Docker is also a solid fallback if npm installs keep giving you trouble on Windows.