# RasPi update of Node-Red

**URL:** <https://discourse.nodered.org/t/raspi-update-of-node-red/69435>\
**Category:** General\
**Created:** [22 October 2022 21:36 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435 "2022-10-22T21:36:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 October 2022 21:36 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/1 "2022-10-22T21:36:35Z")

</div>

I have a RasPi 3B (Buster)

```auto
Raspberry Pi 2 Model B Rev 1.1

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

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)`

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [22 October 2022 22:17 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/2 "2022-10-22T22:17:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 October 2022 22:19 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/3 "2022-10-22T22:19:49Z")

</div>

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. ☹

Thanks for that catch!

```auto
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:

```auto
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.  
😕

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [22 October 2022 22:28 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/4 "2022-10-22T22:28:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 October 2022 22:33 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/5 "2022-10-22T22:33:11Z")

</div>

☹

Got through a couple of Y/N questions then:

```auto
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.

```

Sorry....

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.)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [22 October 2022 22:35 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/6 "2022-10-22T22:35:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [22 October 2022 22:39 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/7 "2022-10-22T22:39:40Z")

</div>

Outside (I guess)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 October 2022 22:41 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/8 "2022-10-22T22:41:06Z")

</div>

Yeah, thanks.

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

Happening now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 November 2022 22:41 UTC](https://discourse.nodered.org/t/raspi-update-of-node-red/69435/9 "2022-11-05T22:41:58Z")

</div>

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