Hi all,
I would like to know if it is possible to upgrade directly from Nod Red v1.1.3 to the current version (v4?).
Any help/guidance would be much appreciated.
Regards,
Peter
Hi all,
I would like to know if it is possible to upgrade directly from Nod Red v1.1.3 to the current version (v4?).
Any help/guidance would be much appreciated.
Regards,
Peter
Yes, how to do it depends on what OS/hardware you are running on, and how you installed node-red intially. If you tell us the answers to that then we can tell you how to upgrade. Make sure you have everything backed up first of course.
Hi Colin and thanks for coming back.
OS is Ubuntu 18.04.6 LTS, Hardware is AWS LightSail, initially installed using NPM.
Look forward to hearing from you
Regards,
Peter
You should be able to upgrade using the recommended install/upgrade script for Debian/Ubuntu systems. However, since you did not use that initially it may change the way you use node-red.
Was that a local install or a global install? If global then the upgrade script should replace that with the latest version. Also that brings the question of how you installed nodejs. The upgrade script will attempt to upgrade nodejs also, so if you installed nodejs in an unusual manner (using something like nvm
for example) then you could have problems.
My recommendation would be to use the script and then sort out any issues afterwards. There is a good chance it will just work. When you run the script I suggest adding the optional parameter --node20
to ensure it updates nodejs to that version. So the command to run after stopping node-red is
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node20
If when it has installed, start it with
node-red-start
If you find that all your flows appear to have gone, do not panic, it is just that the default flows file name has changed. Ask again and we will tell you how to sort that. As I said, though, make sure you have everything backed up just in case. Backup the .node-red folder except for the node_modules folder.