I use a very old version of nodered (v0.20.07). I have many tabs and nodes for my smart home and everything works fine.
Now I would like to update to the newest version. How can I do this without to loose all my nodes, settings and so on?
I found that I need only to type " sudo npm install -g --unsafe-perm node-red": will this work? Will the new Node.js version be installed too?
Before you do anything else make sure that your backups are up to date. You should have everything in your .node-red folder (assuming that is where your flows file is saved) backed up, except for the node_modules folder which will be rebuilt.