Install node-red withtout network connection

Is it possible to install node-red without network connection?
I am using redhat with root user.
After I downloaded the latest package from Release 0.19.5: Maintenance Release · node-red/node-red · GitHub, I unnzip the package and inside folder of node-red-0.19.5 where package.json locates, I used command of "npm install".
The installation stuck at fetchMetadata: sill install loadAllDepsIntoIdealTree.
I tried to use verbose but it didn't give me more information.:

npm install --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/nodejs/node-v8.15.0-linux-x64/bin/node',
npm verb cli '/bin/npm',
npm verb cli 'install',
npm verb cli '--verbose' ]
npm info using npm@6.4.1
npm info using node@v8.15.0
npm verb npm-session 31669ceacd9bdb44
npm info lifecycle node-red@0.19.5~preinstall: node-red@0.19.5
npm timing stage:loadCurrentTree Completed in 21ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 10ms
[ .................] \ fetchMetadata: sill install loadAllDepsIntoIdealTree

The easiest way is to install it normally on an equivalent platform with the Internet. Then you can copy everything over.

The standard Node-RED doesn't lend itself especially to this however. You might like to consider following my alternate install approach which keeps Node-RED and its dependencies and data all under a single folder. That way, you can simply zip everything up, put it on a flash drive and copy over to the other device.

Dear Julian,
This helped a lot! Thank you very much.
Now I could install node-red in my local virtual machine which has internet connection, then transfer the package into another env which does not have internet connection.

1 Like