Unable to install the node properly

Describe the problem/error/question

When I install a node in the community, the bottom right corner shows Error loading package “n8n-nodes-feishu-lite”: Failed to execute npm command Cause: spawn npm ENOENT
I tried another blogger’s method, checked the node path and npm version, and all these installations were fine. Then I also deleted the leftover node files and chose to reinstall, but the same error still occurred.

What is the error message (if any)?

Error loading package “n8n-nodes-feishu-lite” :Failed to execute npm command Cause: spawn npm ENOENT

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Rorschach , this is a known Windows bug, on Windows, npm runs as npm.cmd but n8n looks for plain npm, so it can’t find it and throws ENOENT.

Two fixes:

Option 1: Install the community node manually via command line instead of the UI:

cd ~/.n8n
npm install n8n-nodes-feishu-lite

Then restart n8n.

Option 2 Source code fix (if you need UI installs to work): Edit this file: C:\Users\YourUsername\AppData\Roaming\npm\node_modules\n8n\dist\modules\community-packages\community-packages.service.js

Find the asyncExecFile('npm', ...) call and add shell: true to its options. This is the fix documented in GitHub issue #22706.

1 Like

Hi @Rorschach

See a full indepth solution here:

Also:

Let us know how this goes for you - here on stand by

I have already tried this solution, but it doesn’t work. The error message still persists

I will try the second plan you gave me and inform you of the outcome. Thank you

1 Like

Thank you. I will give this plan a try

I tried manual installation and it has been successful so far. Thank you for your advice!

1 Like