Error installing community nodes - Cannot find module

I am following the steps to install community nodes. I have installed other community nodes succesfully (then deleting it). Now every community node I try to install is throwing an error saying it can’t find a module in the node_modules directory. Is this an issue with my n8n environment or the packages themselves? Hard to see how I could delete the node_modules folder from the UI…

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 1.66.0
  • **Database (default: SQLite): Postgres
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): Docker

Hey @jtoh,

I would delete the /home/node/.n8n/nodes/ and start again, it looks like a node you have installed has pulled in something it shouldn’t be using and that is causing an issue.

I ran rm -rf /home/node/.n8n/nodes/ and i still get the same error. It seems like its looking for n8n-workflow package. Do I need to install this first?

Hey @jtoh,

No that shouldn’t be needed, It could be an issue with the node itself. For science can you try n8n-nodes-badges and see if that installs.

It does not. Same error message

Interesting that node worked for me, We know there is an issue with community nodes not upgrading at the moment so this could be related to that although it would be a bit strange.

Do i need to upgrade? I’m currently on v1.66.0. And when can we expect this to be fixed? it looks like this is blocking all community node installation (at least for me)

Hey @jtoh,

An upgrade may be a good starting point, We have recently fixed an issue with upgrading community packages that you might be interested in as well.

This was indeed fixed here and released in 1.69.0.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.