Page 1 of 1

Updating Node-red

Posted: Fri Mar 02, 2018 10:11 am
by baz123
I was wondering how node-red/node.js is installed in DietPi and how best to update it. Is it just an apt-get install?

Raspbian has a script to update node.js/node-red but this is pretty specific to that Distro/SBC.

I've got a variety of platforms from an older v159 to a more recent V6, so this is not just a how to do it now, but also future releases.

Re: Updating Node-red

Posted: Fri Mar 02, 2018 5:23 pm
by k-plan
baz123 wrote:I was wondering how node-red/node.js is installed in DietPi
https://github.com/Fourdee/DietPi/blob/ ... 4560-L4577
baz123 wrote:Is it just an apt-get install?
No.

Re: Updating Node-red

Posted: Sat Mar 03, 2018 3:06 pm
by baz123
Thanks for the pointer.

For anyone else who might want to update/upgrade node-red, best way is to update node.js first, then npm and finally node-red.

: Update node.js first

Code: Select all

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

Code: Select all

npm i -g npm
Then node-red

Code: Select all

npm install -g node-red --unsafe-perm
then restart node-red

Code: Select all

dietpi-services restart node-red

Re: Updating Node-red

Posted: Fri May 11, 2018 9:06 pm
by squirrel79
How does one enable node-red on boot with v6.7?

Thanks

Re: Updating Node-red

Posted: Tue Jun 04, 2019 11:57 am
by baz123
Over a year since I posted this. Is this still the correct way to update node-red on DietPi?

Just updated to V6.24.1 and want to update node-red.

Re: Updating Node-red

Posted: Sun Jun 09, 2019 9:23 pm
by MichaIng
@baz123
Jep this is still fully correct, however the Node.js/npm update could be skipped.

If you update Node.js, take care the following issue with the installer on ARMv6: https://github.com/MichaIng/DietPi/issues/2755