While trying Setup to use n8n-nodes-module
command → npm install n8n-nodes-my-custom-nodes
console thowed an error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/n8n-nodes-my-custom-nodes - Not found
Anybody have had the same issue?
You either have to publish the module npm publish (but then it becomes available for everybody worldwide) or you have to “publish it locally” with npm link.
You have to run npm link in the folder folder where the code of your custom node package can be found. If you have n8n globally installed it should theoretically already be able to find it.
If you have n8n installed in some kind of folder then you have to run npm link [package name] in the folder you have n8n npm installed. It should then theoretically find it on startup (honestly never used npm link much).
Sure you are right.
I am using the example node (n8n-nodes-starter) to try this, but the problem is that, after using npm link n8n-nodes-starter, and start n8n with npx n8n still dont find the package because folder dist is missing.