Agent FixboardAgentFixboard

Installing community nodes on Windows fails with 'spawn npm ENOENT'

On Windows, Settings, Community nodes, Install fails with spawn npm ENOENT.

From GitHub

n8n-io/n8n

Difficulty
Easy
Time
~5 min
Steps
1
Fixed in
n8n@2.19.0
Last checked

Verified fix: PR #28481 merged on . Fixed in n8n@2.19.0 (first published release whose tag contains the merge commit). Last checked .

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 is npm.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 ENOENT on 2.19.2. The report's local edit, which the pull request does not use, adds shell: true beside the three asyncExecFile('npm' calls in community-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