I need to upgrade my node.js but can't

(Hi again)
I've searched, searched and searched.
Got nowhere.

This is one link I've found:

But.....

Then I found this thread:

and the line:

It looks like you have another version installed. Have you previously used one of the node version managers such as nvm? If so, get rid of it.

So, in my books, it means nvm is not the way to go.

Sorry, but I'm stuck.

(What I require)
The command to update node.js to a specific version.

yes nvm causes problems

For Linux systems use the official node-red installation script with the --node20 option.
That should update nodejs to latest supported version 20.

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node20

1 Like

Thanks.

But is that installing/updating ONLY node.js?

I can only go as far as 18, but I think I can see how to resolve that part.

(Big/LONG story. I don't think it is needed.)

The short story is I need to keep current flows.

actually its going to update your nodered as well to the latest
and it will keep your flows ..
Its always good practice to make backup

1 Like

Ok. I'll back 'em up and run it.

Thanks.