node.jsnode-modulesnode-red

Install node red nodes/packages by copying them?


Hey I got a server with a normal node red installation it had no flows and I imported some flows with he import function. Now a node is missing and my question is can I install this node without internet connection by just copying it from another server? Like copying the folder of the node in the mode_modules folder or just add the name in the package.json file? Or maybe both? And then use npm install to install it?

It's a customer system so I couldnt try anything yet cause I don't want to break anything.


Solution

  • it is possible. Here is what you can do:

    Keep in mind that this approach may not work for all nodes, especially if the node relies on external resources that are not included in the copied files. Additionally, be cautious and test thoroughly in a safe environment before applying changes to a customer's system.

    If you encounter any issues or if the node has complex dependencies, it might be worth considering an alternative approach, such as creating a package with all the required files and dependencies and then installing it on the customer's system.