I need help loading a custom node module which I was perviosuly able to load in global node_module directory.
Hi @roozbehk, I am sorry for the trouble. I could only get this to work on npm by making node modules available under
/usr/local/lib/node_modules, for example like so in a docker compose file:
Afterwards, I could require such modules as expected:
That said, perhaps there is an easier way. @netroy can you confirm what the proper approach would be here? Or in other words, how would one one make all npm packages in
~/.n8n/nodes/node_modules available to n8n?
Thank you @MutedJam , your workaround solution worked as expected and the node module loaded. I believe this soltuon should sustain n8n version upgrades so I have no issues mouting the node modules needed into the
/usr/local/lib/node_modules directory moving forward.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.