How to install nodes offline with npm-bundle?

Please prepare a PC that has already installed npm, and install npm-bundlein the PC.

npm install -g npm-bundle

Install the node-RED package that you want to install on the offline PC, such as node-red-contrib-float

npm install node-red-contrib-float

Using npm-bundle to make a bundle package

npm-bundle node-red-contrib-float

Then you will get a install package called node-red-contrib-float-1.0.3.tgz

Please copy node-red-contrib-float-1.0.3.tgz totarget PC, and switch to folder /usr/bin/AXView30/SensorNetwork/Webservices/

and type:

npm install node-red-contrib-float-1.0.3.tgz

After installation, please reboot PC or restart server.js

done!

Last updated

Was this helpful?