Updating node.js

Hello all,

I’d like to update nod-red (0.20.08).

I updated npm before I found this at, https://dietpi.com/forum/t/updating-node-red/2041/1 which says I should update node.js first.
I’ve followed:

wget http://raw.githubusercontent.com/taaem/nodejs-linux-installer/master/node-install.sh
chmod +x node-install.sh
./node-install.sh

Works till I get to (./node-install.sh) then I get a no internet error.

root@DietPi:~# ./node-install.sh
Node Linux Installer by www.github.com/taaem
Running as Root User
Get Latest Version Number...
ERROR: No Internet Connection

any ideas?

did you simply tried to reinstall?

dietpi-software reinstall 122

I would recommend to create a backup first.

Thanks I thought about that.

I’d definitely do a backup, but would it anyway wipe all node red flows, influxDB’s and other stuff, or just the core apps?

Usually it should not remove stuff. At least our code will install node.js and node-red only. If everything is located on a SD card, the backup should be complete.

Hi, while trying to update the nodered install with the mentioned reinstall 122, something within the process brakes glibc and the only way was to revert from the back up. i also tried just updating node-red but that didn’t work because of the node.js version.

the reason was for the new version of nr-package with the req: Note that the minimum node-red version 1.3.7 and minimum nodejs version is 12.x.

I am running newest dietpi on a rpi4 with nr 1.2.x

there error was similar to this

node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)

many thanks, best p

pls create an own issue and fill the issue template. This would help to understood more on your environment. thx

please have a look here