Updating Node-red Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Updating Node-red

Post 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.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Updating Node-red

Post 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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Updating Node-red

Post 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
squirrel79
Posts: 2
Joined: Mon Apr 30, 2018 9:51 pm

Re: Updating Node-red

Post by squirrel79 »

How does one enable node-red on boot with v6.7?

Thanks
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Updating Node-red

Post 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.
User avatar
MichaIng
Site Admin
Posts: 2331
Joined: Sat Nov 18, 2017 6:21 pm

Re: Updating Node-red

Post 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
Post Reply