I want to develop a custom node also by using a private custom node module (for privacy guard).
My node should check marketing permission for a user_id in input.
By user_id, the node read from company db if permission allow to send marketing communications or not.
I’m trying to do it on localhost.
Maybe there is a better way?
Ah then you did everything right. There should be no need to set any of them. If you however really have to, you can simply set them as environment variables in the terminal you start n8n from. I hope that helps.
Yes, you help me a lot, but I’ve a lot of difficult to install private node mdule (for this I’va asked if clone progect is the right way).
Maybe it is another question if you want I change title or I do another question
My custom node works, but now I’m trying to install a private node module with lerna through:
There should be nothing needed with lerna. You can simply install the package totally normal with npm install.
If it is not publish and the code in the same directory structure (under packages) you can simply add it as dependency in the package.json file of the “n8n-cli” package and then run lerna bootstrap --hoist again. It will then link everything correctly and on the next n8n launch it will load the nodes.
I’ve install the npm module in pakages/nodes-base.
It works, but when i launch lerna bootstrap --hoist again the nodes-base/node_modules/mymodule becomes empty and the modules reamins only in node_modules root directory.
In anyway under node-base/package.json there is “mymodule” between the “dipendences”.
What do you mean with:
“add it as dependency in the package.json file of the “n8n-cli” package”
I should install my module in directory packages/cli?