Upgrade Node-RED version offline

Hi, all!

I don´t know if anyone question this, but I need to know if it´s possible to upgrade the node-red version offline way. I have 4.0.5 version in my windows server running locally, but I have not access to network because the IS in my company. Could anyone help me?

Hi @eriiicaraquel,

And welcome to the Forums.
This comes up every so often, and generally its never successful.

Node RED depends on 3rd Party Packages.
These 3rd Party Packages depend on 3rd Party Packages, these 3rd Party Packages, depend on 3rd Party Packages..

See where I am going? :smiley:

Node JS application installs/updates, depend heavily on NPM, which pulls down packages from... well.. NPM.

You can do a dependency walk on the latest code base, but that will require a huge amount of time, and may not be successful.

generally speaking - you need the internet.

Now then, you could if willing, install the latest version of Node RED on a system that has access to the Internet, and it matches the same Platform / OS / CPU, and copy stuff over, but that will require some careful testing, and planning.

its not impossible, but your mileage is going to be lengthy and tedious.

If node red is running on something like a Pi then it may be fairly simple to set up an identical system which does have internet access, do the upgrade on that pi and transfer the card to the production system. Of course you would have to check that that was not breaking any corporate IT rules.

1 Like

Not quite the same message as from Marcus. The basics are certainly there. As long as you have an internet connected device of the same platform, you can install Node-RED there and then simply copy everything over by USB drive.

Though certainly, as Marcus says, this can be a very slow process due to there being a LOT of small files. (thousands or 10's of thousands). My development instance is 1.8GB, >42k files and >5k folders.

The other thing to node is that it is MUCH easier to do this if you forego installing Node-RED globally (which is how the documentation tells you to do it). Install locally and set the userDir folder (that holds the settings.js, flows, etc) to be a sub-folder of the one where you've installed node-red. Again this is a perfectly standard way of doing things for a node.js application - indeed more normal than installing globally.

1 Like