RasPi update of Node-Red

I have a RasPi 3B (Buster)

Raspberry Pi 2 Model B Rev 1.1

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION="10 (buster)"

Raspberry Pi reference 2021-03-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 461109415073d2eb67083709662ba983cc191f14, stage5
Linux BedPi 5.10.17-v7+ #1414 SMP Fri Apr 30 13:18:35 BST 2021 armv7l GNU/Linux
              total        used        free      shared  buff/cache   available
Mem:          924Mi       359Mi        53Mi        31Mi       511Mi       485Mi
Swap:         1.0Gi       7.0Mi       1.0Gi

It is running NR 2.1.3
Dashboard 3.1.2

node -v gives me 12.22.1

I am just wanting to confirm this command will work to update NR.
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

looks good to me but I'd add -node16 to the end to get node js version
at least this is what I use for my pi 3 but you list a Pi 3b and then you say Pi 2 model B,
I'm confused

1 Like

Oh poop!

I am glad I included the command response then!

I thought (bad idea) it was a 3, but it is a 2.

With so many of them, I forget who is what. :frowning:

Thanks for that catch!

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

Then I tried:

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

Nothing happened. Straight back to command prompt.

both commands show the -node16, what happens if you leave that off?


Got through a couple of Y/N questions then:

Running Node-RED update for user pi at /home/pi on raspbian

Node-RED v3.x no longer supports Nodejs 12 
  You can force an install of node 14, 16  or 18 by using the --node14, --node16 or --node18 parameter.
  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 12 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.
  Exiting now.


Ok, I'll try what it says.
(I was just posting what happened and didn't think to read what it said)

The message is good, but not clear enough to me.

WHERE do I add the --node16 part?
As the command I enter is/has ( ) in it, does it go inside them or outside as I did the first time?
(Outside as per my first post.)

actually noticed that the --node16 should have two of the -, I think I only put one in, try it with two

1 Like

Outside (I guess)

1 Like

Yeah, thanks.

I am still learning the syntax of how these things work.

Happening now.

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