After restarting n8n, users may see an error message when loading certain community nodes (for example, n8n-nodes-hostinger-api
).
This issue usually happens when leftover files in the n8n node directory prevent modules from being reloaded correctly.
You might see this error message in the n8n logs or dashboard:
Root Cause
This happens when stale dependencies (for example, package.json
or node_modules
) remain inside /home/node/.n8n/nodes
after a reinstall or node update.
These leftover files can prevent n8n from properly loading community node classes.
Solution
You can fix the issue with a single command.
-
Run this command:
-
Restart the container:
-
Reinstall the desired node (for example,
n8n-nodes-hostinger-api
) from the n8n UI or CLI.
Additional Notes
-
The issue can also occur after uninstalling or updating other nodes (for example,
n8n-nodes-puppeteer
). -
Always restart n8n after modifying anything in
/home/node/.n8n/nodes
. -
Removing the
package.json
andnode_modules
ensures n8n rebuilds dependencies from scratch.