Want to upgrade Node-Red from 3.0.2 to latest. I'm running Debian. Terrified as I have zero clue. Help please. Tried according to the ND website and get the following message! No idea what that means!
Running Node-RED install for user ola_a at /home/ola_a on debian
[sudo] password for ola_a:
Node-RED v3.x no longer supports Nodejs 16
You can force an install of node 18 or 20 by adding --node18 or --node20 to the end of the command line above.
However doing so may break some nodes that may need re-installing manually.
Generally it is recommended to update all nodes to their latest versions before upgrading.
If you wish to stay on nodejs 16 you can update to the latest Node-RED 1.x or 2.x version by adding
--nodered-version="1.3.7" or --nodered-version="2.2.2" to that install command. If in doubt this is the safer option.
Please backup your installation and flows before upgrading.
Note: not all embedded hardware can be updated via this method - please check before proceeding.
Exiting now.
OK
I asked Chatgpt and got great help with the upgrade.
It urged me to make a backup, which I did. Of course, when it comes to Linux and updates, nothing works really well! Completely Empty ND !!!
Did you install nodejs using nvm? That is a bad idea, you will have problems at some point. You would have been better to use the recommended upgrade script.
Sorry I made a mistake. Now I tried your link and it looks very different and I don't get any errors so far. I try to start and then I get the same error as before se picture.
Now it's looking better. Yes I'm up and going And all nodes are there phuuuu.
I'm so happy now an again thank you very much for all the help and for putting up with me and my ignorance.
No I have backup of everything but I don't like to work to much, and in the computer world not everything goes as i should even restore get me into to much work sometimes.