Updating Node-red Topic is solved

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

Updating Node-red

Post by baz123 » Fri Mar 02, 2018 9:11 am

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 4:28 pm

Re: Updating Node-red

Post by k-plan » Fri Mar 02, 2018 4:23 pm

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: 111
Joined: Thu Jan 12, 2017 8:23 pm

Re: Updating Node-red

Post by baz123 » Sat Mar 03, 2018 2:06 pm

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 8:51 pm

Re: Updating Node-red

Post by squirrel79 » Fri May 11, 2018 8:06 pm

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

Thanks

baz123
Posts: 111
Joined: Thu Jan 12, 2017 8:23 pm

Re: Updating Node-red

Post by baz123 » Tue Jun 04, 2019 10:57 am

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
Legend
Posts: 1510
Joined: Sat Nov 18, 2017 5:21 pm

Re: Updating Node-red

Post by MichaIng » Sun Jun 09, 2019 8:23 pm

@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