Node-RED on debian jessie

2,540 views
Skip to first unread message

DPS - LWK

unread,
May 30, 2015, 1:45:14 PM5/30/15
to node...@googlegroups.com
I've been trying to install node-red on debian jessie today and after much pain and googling i finally have it working
Im running jessie in a VM not on a Raspberry Pi.

I installed the following

$ sudo apt-get install nodejs npm

then tried 
$ sudo npm install -g node-red

Which is where I hit all sorts of errors

In debian jessie they rename node to nodejs :/
The eventual fix was the following command
$sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10

form found in this post

after the above the install command worked as normal
$ sudo npm install -g node-red

Anyway I hope this helps other trying to run on jessie.
I don't know if this might also effect running on the Raspberry Pi2 jessie images?

Matt

Dave C-J

unread,
May 30, 2015, 2:18:16 PM5/30/15
to node...@googlegroups.com
Hi Matt,

nice spot.

I also tried on a 32bit i386 clean vm of Jessie today (so intel not arm) - but used the Pi instructions
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs

and they seemed to work fine also...

Now "upgrading" an "old" Pi B to Jessie to give it a whirl.

Dave C-J

unread,
May 30, 2015, 2:24:24 PM5/30/15
to node...@googlegroups.com

It would seem the above way IS the approved way for Debian. (rather than just apt-get....)

Julian Knight

unread,
May 30, 2015, 4:13:25 PM5/30/15
to node...@googlegroups.com
Ah, yes - you've reminded me now!

I tend to use Debian on any Linux servers and you get used to remembering that Debian is extremely conservative. This really doesn't fit well with fast moving applications such as Node.JS so you get used to installing certain software from alternative locations or from source.
Reply all
Reply to author
Forward
0 new messages