How to update NODE used by Node-Red


Currently running Node-Red 3.02 installed from the DietPi -Software.

It using node 15.5… how can node be updated to be on v16 or above.

I had couple of plugins that are now saying it need node v16 or above to update


Thanks i have done that but this has now broken Node-Red from starting up.

the Reinstall says it was installing v20, if i now do the following where before it said v15.5 i get

./node: /usr/lib/arm-linux-gnueabihf/ version GLIBCXX_3.4.26’ not found (required by ./node)`

Node-red now fails to start.

Sep 16 16:19:02 DietPi systemd[1]: node-red.service: Service RestartSec=100ms expired, scheduling restart.
Sep 16 16:19:02 DietPi systemd[1]: node-red.service: Scheduled restart job, restart counter is at 5.
Sep 16 16:19:02 DietPi systemd[1]: Stopped Node-RED (DietPi).
Sep 16 16:19:02 DietPi systemd[1]: node-red.service: Start request repeated too quickly.
Sep 16 16:19:02 DietPi systemd[1]: node-red.service: Failed with result 'exit-code'.
Sep 16 16:19:02 DietPi systemd[1]: Failed to start Node-RED (DietPi).

 Step: Installing Node.js: JavaScript runtime environment

[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | Checking URL:
[ INFO ] DietPi-Software | G_THREAD_START_0 | curl -sSfL -o
[ INFO ] DietPi-Software | APT install libatomic1, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
libatomic1 is already the newest version (8.3.0-6+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install libatomic1
[  OK  ] DietPi-Software | G_THREAD: All threads finished
[  OK  ] DietPi-Software | chmod +x
[ INFO ] DietPi-Software | ./, please wait...
Universal Node.js Linux Installer by, updated by
Searching latest stable version for armv7l ...
Found latest stable version for armv7l: node-v20.6.1-linux-armv7l.tar.gz
Downloading ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 40.7M  100 40.7M    0     0  8544k      0  0:00:04  0:00:04 --:--:-- 9048k
Finished downloading!
Installing /tmp/node.tar.gz ...
removed '/tmp/node.tar.gz'
Finished installing!

Your Debian version seems to be to old. Pls share more details on your system


  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

Sorry looks like this is exactly same as Node-red will not install. GLIBCXX_3.4.26 not found

  • DietPi version | DietPi v8.21.1
  • Distro version | buster 1
  • Kernel version | Linux DietPi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
  • Architecture | armhf
  • SBC model | RPi 4 Model B (armv7l)

i can see there instructions to update the os to latest version… but dont have the time to do that and make sure nothing fails. Also i wasn’t sure the current installed software would then need update or reverting.

I have Sonarr, Plex, Portainer, NZBGet etc… so sure these will still work on Bullseye.

Also Dietpi- Backup ran for 2hours then failed.

Debian Buster is quite old system and we will drop support at the end of this year. I highly recommend to check for an update path.

thanks i will have a look… instructions seem decent enough…

anyway to fix this one file issue.? maybe roll Node to V16 instead of it being V20… maybe that will be old enough for it to allow NR to work for the time being.?

Probably but something you need to install manually on your own. Or script will install latest node version always.

I bit the bullet and ran through the upgrade instructions and so far everything is working again.

top mark for very easy to follow instructions… thanks.