Is there a universal update script/command?

If I want to update NR on my RasPi, I use this command:

bash <(curl -sL

and it works.

But it doesn't work for Ubuntu. Fair enough.

But it begs the question - for me - is there one (note: ONE) command?

I've seen posts but it is a heap of commands entered one after the other.
Which seems strange if it is done for the RasPi, there isn't one for Ubuntu.

Oh, the commands I see are also (I believe) dated as they point to old versions.
Or it is implied it is for older versions, so those commands are really specific for that version and can't be used for subsequent updates.

It does work for me on Ubuntu. If it doesn't for you then report it here so it can be fixed.

1 Like

Ok. Thanks.

Just for the sake of it:

This is what I get when I do it.

me@me-desktop:~$ cd .node-red
me@me-desktop:~/.node-red$ bash <(curl -sL
The command that got you this script has been updated.
Please use the following version:
   bash <(curl -sL
See  for details.
Thank you.
[sudo] password for me: 
rm: cannot remove '/usr/bin/update-nodejs-and-nodered': No such file or directory

(Sorry, I just got back from 2 weeks away and still not up to speed.)
What is the link I use to submit the problem?


Ok, I'll try the suggested command.

Hang on.

It works. Sorry.

That is a very old version of the command - if you check here for the latest - Running on Raspberry Pi : Node-RED

1 Like

Every server is different and many requirements are different so there can never be "one script to rule them all".

In any case, installing Node-RED is just npm install -g node-red --production --unsafe-perm. Everything else is about dependencies which may already be present anyway.

That command works on EVERY platform that supports Node-RED. As long as Node.js is installed in a standard way.

One of the reasons for Dave's script was that Rasbian did not have a standard Node.js installation for some time - I actually don't know if it does even today since I always use the Node.js recommended library.

I have that in my list (but not at the top) and prefixed with sudo


I shall get things up to date asap.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.