i tried to install nodes without internet but installation of nodes taking longer time(more that 20 min), some time nodes are not installing. what may be the issue and how we can fix this issue. (how we can install nodes within 2 or 3 min) using node red API
We had a very similar question asked on the Node-RED issue tracker last week - NODE install through API taking too long for some nodes in offline environment · Issue #4188 · node-red/node-red · GitHub - is this related?
As I commented on that issue, It would be helpful to know what your experience is running the npm command directly on the offline device to install your tgz. I suspect there's something in npm that is trying to access the network and it is having to time out.
we are using -> npm pack node_name command to install TGZ file, but we tried this command in online mode not offline.
npm pack
creates the tgz file.
When you pass it to node-red using the admin api, node-red then calls:
npm install <path-to-the-tgz-file>
Any delays in installing will be coming from npm
.
I'm suggesting you try running the npm install
command with your tgz manually and see if that has the same delays as when doing it through Node-RED's admin api.
And as also noted in that issue there are flags for the command that stop it checking for updates, audit checks etc which are also worth setting
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.