# Upgrading RPi-3B to latest version of Node-RED

**URL:** <https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150>\
**Category:** General\
**Created:** [25 August 2021 09:13 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150 "2021-08-25T09:13:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [25 August 2021 09:13 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/1 "2021-08-25T09:13:30Z")

</div>

I'm trying to grade a RPi-3B, running Buster, to Node-RED 2.0.5  
After the upgrade Node-RED gives loads of error message, I suspect because nodejs is still v8.17.0  
I used this bash script. This is a screen-shot of the update report.

 ![Screen Shot 08-25-21 at 10.06 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0cc7044b8339481e3532c2ffe9341f8cc57ee6a9.png)

![Screen Shot 08-25-21 at 10.05 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d75ed10d0dc880def46521cff8d8ffcd632557d.png)

Any suggestions on what I could try next to update Node.js to v12 ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 August 2021 09:34 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/2 "2021-08-25T09:34:04Z")

</div>

What does the install log show?

What does this show?  
`apt policy nodejs`

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 August 2021 09:40 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/3 "2021-08-25T09:40:49Z")

</div>

see this thread:

> [@\[Announce\] updated Linux install script](https://discourse.nodered.org/t/announce-updated-linux-install-script/46998):
>
> To go along with the v2 beta I have updated the Linux install script to have some more command line switches to hopefully give you more control of what you may want to install as usual you can run it from remote bash \<(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) but you can add parameters eg --help to the end of the command to see more options So for example to force install nodejs 14 and try the new beta and then restart you cou…

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 August 2021 10:02 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/4 "2021-08-25T10:02:22Z")

</div>

I don't think that is the issue, it says it is installing 12 but ends up with 8 so something odd is going on.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [25 August 2021 10:07 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/5 "2021-08-25T10:07:23Z")

</div>

pi@RPi\_138:~ $ apt policy nodejs  
E: Invalid operation policy

I've just cleared the logs as they are lengthy and will do another install and will then post the log.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 August 2021 10:22 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/6 "2021-08-25T10:22:12Z")

</div>

> [@dynamicdave](#):
>
> apt policy nodejs  
> E: Invalid operation policy

Are you sure you are running Buster?

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [25 August 2021 10:32 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/7 "2021-08-25T10:32:08Z")

</div>

Hi Colin,  
I suspect that could be the problem, this is the result of doing lsb\_release -a  
 ![Screen Shot 08-25-21 at 11.31 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/a/4a13a281c44ee1c02f941de93969ad601e0909c1.png)  
I was sure I upgraded Stretch to Buster. I'll go through the steps again.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 August 2021 12:27 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/8 "2021-08-25T12:27:22Z")

</div>

I always use `cat /etc/os-release`

**pi@testpi** : **~ $** cat /etc/os-release  
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/](http://www.raspbian.org/)"  
SUPPORT\_URL="[RaspbianForums - Raspbian](http://www.raspbian.org/RaspbianForums)"  
BUG\_REPORT\_URL="[RaspbianBugs - Raspbian](http://www.raspbian.org/RaspbianBugs)"  
**pi@testpi** : **~ $**

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [26 August 2021 09:03 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/9 "2021-08-26T09:03:10Z")

</div>

**Thanks to everyone who tried to help me yesterday.**

I spent 3-hrs yesterday whilst the RPi-3B was updating from Stretch to Buster only to be hit with some error messages about pkgs!! If I'd known it was going to take that long I wouldn't have bothered and would have gone immediately to plan-B.

Plan-B. This morning I've flashed a brand new SD card with 2021-05-07-raspios-buster-armhf, installed Node-RED then used the above script to get to v2.0.0-beta.2 the did an update to get to Node-RED v2.0.5 and can report everything is working fine.  
Thankfully I backed-up the project area from the old SD card and will copy this over to the new one.  
 ![Screen Shot 08-26-21 at 09.44 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/df2be2f49ef92adebbb24a498323d5b85c5c3b66.png)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [26 August 2021 09:25 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/10 "2021-08-26T09:25:13Z")

</div>

> [@dynamicdave](#):
>
> would have gone immediately to plan-B.

Plan B - Always the better plan in my opinion

---

<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:** [25 October 2021 09:25 UTC](https://discourse.nodered.org/t/upgrading-rpi-3b-to-latest-version-of-node-red/50150/11 "2021-10-25T09:25:28Z")

</div>

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