Symptom
On Windows, Settings, Community nodes, Install fails with spawn npm ENOENT.
Evidence what you'll see
- The report started seeing it after updating to n8n
1.122.4. The previous version installed the node. - The install calls
asyncExecFile('npm'. On Windows that name isnpm.cmd.
Why it happens
execFile does not run npm.cmd unless a shell is involved. Pull request 28481 says adding shell: true would do that and also calls it a risky option, so the change does not use it.
Affected versions
n8n 1.122.4 on Windows. The linked issue does not name a Node version.
Fix steps
0 of 1 done
Your check marks stay in this browser only.
How to check it worked
- Install a community node from Settings and confirm the install finishes without
spawn npm ENOENT.
If it still fails
- The linked issue does not describe
spawn npm ENOENTon2.19.2. The report's local edit, which the pull request does not use, addsshell: truebeside the threeasyncExecFile('npm'calls incommunity-packages.service.js.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it