Node-RED is now included in Raspbian Jessie.

635 views
Skip to first unread message

Nicholas O'Leary

unread,
Nov 25, 2015, 9:08:41 AM11/25/15
to Node-RED Mailing LIst
Hi,

I teased an announcement last night, but we didn't quite have all the pieces in place for me to share the news - but we do now.

As of the November 2015 Raspbian Jessie image, Node-RED now comes preinstalled on the Raspberry Pi.

Since being made available on the npm package manager last year, we have had over 113,000 installs of node-red - roughly half of those coming from users taking advantage of the boilerplate we make available on IBM Bluemix, with a few hundred more installs happening daily. Of course a proportion of those will be re-installs rather than new installs, but it is certainly a healthy sign.

Coming preinstalled on the Raspberry Pi immediately makes it available to an even wider audience and should prove a great boost to the project.

We've come a long way since Dave and I started Node-RED as a side project. And we certainly haven't finished yet.


Nick





Carlos.Pedrinaci

unread,
Nov 25, 2015, 9:11:02 AM11/25/15
to node...@googlegroups.com
Just a reflection of your great work. Congrats guys.

Carlos


--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.

Nathanaël Lécaudé

unread,
Nov 25, 2015, 9:30:20 AM11/25/15
to Node-RED
Congratulations !

I use Node-RED on the Raspberry pi a lot this will make things easier !

The ThingBox

unread,
Nov 25, 2015, 9:38:20 AM11/25/15
to Node-RED
Hi,

Just an info:

We have made a ThingBox on a Jessie image some time ago, but didn't released it because we faced many incompatibilities
with third party code..

Nicolas

The ThingBox Project - A ready to flash Raspberry Pi image that contains Node-RED and Internet Of Things software for non developers.

Mark Setrem

unread,
Nov 25, 2015, 10:34:33 AM11/25/15
to Node-RED
Fantastic news, congrats!

Having installed it, I'm happily running it and have installed additional nodes without any problems.

Rgds. Mark

Luis Montes

unread,
Nov 25, 2015, 10:44:39 AM11/25/15
to node...@googlegroups.com
Whoa, that is awesome!

Good job guys.



Nathanaël Lécaudé

unread,
Nov 25, 2015, 11:07:22 AM11/25/15
to Node-RED
I see there is a node-red-start command now.  What would be the best way to start node-red as a service on boot ?


Le mercredi 25 novembre 2015 09:08:41 UTC-5, Nick O'Leary a écrit :

Nicholas O'Leary

unread,
Nov 25, 2015, 11:11:57 AM11/25/15
to Node-RED Mailing LIst
If you are using this preinstalled version (or have apt-get installed it), then it is already installed as a service, you just need to tell rc.d to start it:

Nick




Lawrence Griffiths

unread,
Nov 25, 2015, 3:14:59 PM11/25/15
to Node-RED
Congratulations to the Node-RED team this is an amazing mile stone! 

Artem Pastukhov

unread,
Nov 26, 2015, 1:33:44 AM11/26/15
to Node-RED
Thats great!
But why you are using init.d start-up script instead systemd unit?
Where i can find the sources of debian package?

среда, 25 ноября 2015 г., 17:08:41 UTC+3 пользователь Nick O'Leary написал:

Nicholas O'Leary

unread,
Nov 26, 2015, 4:49:08 AM11/26/15
to Node-RED Mailing LIst
Hi Artem,

Dave did the hard work on this but he's currently off at a client site this week. Once he's back, we'll get the source for the package up on github and let you know.

Nick

Артем Пастухов

unread,
Nov 26, 2015, 5:23:38 AM11/26/15
to node...@googlegroups.com
Thanks.

--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/32a4woIKeZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

Dave C-J

unread,
Nov 26, 2015, 12:01:48 PM11/26/15
to node...@googlegroups.com

Currently using init.d as we are not actually installing as a running service. (As not everyone may want Node-RED running by default on their new install... ) so we installed it so it could be enabled simply, but also run using the same script. So the new node-red-start command starts the service and then tails the log file so the user can see the output.

That way we can use the same menu shortcut whether it is stopped, running or running as a service.

This may also be possible with systemd but I'm not yet familiar enough with it, so went with what does the job.

Julian Knight

unread,
Nov 28, 2015, 2:11:08 PM11/28/15
to Node-RED
Well done guys, great to see Node-Red being recognised as an important part of the IoT world just like the Pi.

If we can ever get our hands on the new Pi Zero's (sold out already I understand), I predict large numbers of NR instances appearing around the world ;)


On Wednesday, 25 November 2015 14:08:41 UTC, Nick O'Leary wrote:

Peter Scargill

unread,
Nov 29, 2015, 9:27:02 AM11/29/15
to Node-RED
I have a zero and plan to test the latest development next week but bear in mind the zero has no Ethernet and is not fast like pi2. I have only moderate ambition for it.

So what version of Raspbian do I need to look for to getbNR built in?

Nicholas O'Leary

unread,
Nov 29, 2015, 9:28:18 AM11/29/15
to Node-RED

Raspbian Jessie


On Sun, 29 Nov 2015 14:27 Peter Scargill <peters...@googlemail.com> wrote:
I have a zero and plan to test the latest development next week but bear in mind the zero has no Ethernet and is not fast like pi2. I have only moderate ambition for it.

So what version of Raspbian do I need to look for to getbNR built in?

Peter Scargill

unread,
Nov 29, 2015, 9:35:17 AM11/29/15
to node...@googlegroups.com

And is password security already in place or does that need adding?

Pete

You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/32a4woIKeZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

Peter Scargill

unread,
Nov 29, 2015, 1:03:20 PM11/29/15
to node...@googlegroups.com

Slight clarification please. Is that included in the November NOOBS version – or do we need to download the separate Raspbian Jessie standalone version?

 

Pete.

--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/32a4woIKeZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

Mark Setrem

unread,
Nov 29, 2015, 1:26:24 PM11/29/15
to Node-RED, pe...@scargill.org

you end up with the same build of jessie following either route. 

NOOBS just gives you the the simple Operating System installer,  (and the NOOBs Lite version requires you to have a network connection)

But if you already know what you want you might as well just download the standalone Raspbian Jessie

Toshi Bass

unread,
Nov 29, 2015, 2:20:42 PM11/29/15
to Node-RED, pe...@scargill.org
Pizero needs latest version of NOOBS v1_5_0 dated 21/11/2015 or it will not load. same with Raspbian Jessie needs to be v4 dated 21/11/2015, both include node-red but you need to download npm (sudo apt-get install npm) as its not included

Toshi 

Julian Knight

unread,
Nov 29, 2015, 5:44:14 PM11/29/15
to Node-RED, pe...@scargill.org
I don't recommend installing npm separately. Last time I tried that, everything went bang! 

You should just ensure that node.js is installed, you will get the correct version of npm to match the version of node.js.

Dave C-J

unread,
Nov 29, 2015, 5:55:07 PM11/29/15
to node...@googlegroups.com
Julian

the preinstall of Node-RED required node.js to be present so it is also already there. 
sudo apt-get install npm   
then does the correct thing - so no need to worry.
It was left out by default as the Pi guys are always worried about space and adding npm drags in a load of extra packages, that while useful to anyone one step beyond beginner, are not strictly necessary to run and get to grips with the Node-RED basics. 

Nicholas O'Leary

unread,
Nov 29, 2015, 5:58:04 PM11/29/15
to Node-RED, Peter Scargill

Julian,

In Raspbian Jessie, node.js and npm are packaged separately and the preinstalled version of node-red depends on just the node.js package. This was done to keep the footprint of the node-red package as small as possible as previously node.js was not preinstalled on the image.

It is good enough to try node-red out and if you want to install additional nodes, as the updated Raspberry Pi docs state, you have to first "apt-get install npm" - this is guaranteed to get you the right version of npm as it is also the version packaged for Raspbian Jessie.

If you want to run with a different version of node.js then, as full explained in our RPi docs, you have to remove the apt installed version of node-red and node.js and (if you had added it) npm, before following the instructions for installing node and the rest. Those instructions should always get you npm installed alongside node.js.


Nick




 inodered package only depends on the nodejs package. It does not depend on the npm package -


--

Blue Collar Ingenuity

unread,
Dec 1, 2015, 2:42:20 PM12/1/15
to Node-RED, pe...@scargill.org
Hi Nick, 
            As you can see by my posts I am a real NOOB. I am a frustrated with the Raspbian Jessie img. I thought it was targeted towards people like me...BUT the older version of node.js makes it confusing when trying to install new nodes. I think ALOT of new user are going to hit this road block and get confused. It should be the most current version so it can work with all Nodes. Maybe I'm not understanding this properly. I worked all evening getting my Neurio communicating to emoncms. Now I tried my DHT11 sensor to learn I have to remove everything and reinstall to get the current version of node.js. 

Jeff 

Dave C-J

unread,
Dec 2, 2015, 4:29:24 AM12/2/15
to node...@googlegroups.com
As noted in another thread you do see to have hit the perfect bad news combination. We are trying to resolve this now.
The particular node you are trying to add does not fix it's own dependancies to versions that are known to work, instead relying on the underlying author not to make breaking changes... The underlying package meanwhile has been "enhanced" such that it now requires the newer version of node - which then breaks. I have asked the author to "pin" the required version back to an older level that does compile without problems against the node v0.10.x . This then does compile and works fine - I have posted the workaround in the other thread - while we wait for the author to accept the pull request.

Blue Collar Ingenuity

unread,
Dec 2, 2015, 7:26:00 AM12/2/15
to node...@googlegroups.com
Hey Dave, 
                I do now see how everything lined up for me. This hobby is all about learning and that I am :). Thank-you for "work around" I will give it a go tonight. 

Jeff 

On Wed, Dec 2, 2015 at 4:29 AM, Dave C-J <dce...@gmail.com> wrote:
As noted in another thread you do see to have hit the perfect bad news combination. We are trying to resolve this now.
The particular node you are trying to add does not fix it's own dependancies to versions that are known to work, instead relying on the underlying author not to make breaking changes... The underlying package meanwhile has been "enhanced" such that it now requires the newer version of node - which then breaks. I have asked the author to "pin" the required version back to an older level that does compile without problems against the node v0.10.x . This then does compile and works fine - I have posted the workaround in the other thread - while we wait for the author to accept the pull request.

--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/32a4woIKeZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

Blue Collar Ingenuity

unread,
Dec 2, 2015, 7:36:50 PM12/2/15
to Node-RED, pe...@scargill.org
Hi Nick, 
            I started with a clean img of the pre-installed NR on Jessie with the intention to removing node.js and updating as per the site instructions. I followed these instructions (X2)

To do this you must uninstall the built-in version and re-install using the instructions below. To uninstall:

sudo apt-get remove nodered
sudo apt-get remove nodejs nodejs-legacy
sudo apt-get remove npm   # if you installed npm

This will remove all the built in packages but leave your workspace - by default at ~/.node-red . You may then proceed to re-install as per instructions below.

and 


Raspberry Pi 2

To install Node.js on Pi 2 - and other Arm7 processor based boards, run the following commands:

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y build-essential python-dev python-rpi.gpio nodejs

and 

Install Node-RED

The easiest way to install Node-RED is to use node’s package manager, npm:

sudo npm install -g --unsafe-perm  node-red

When I run 

node-red-pi --max-old-space-size=128

I get the following error

pi@raspberrypi:~ $ node-red-pi --max-old-space-size=128

/usr/lib/node_modules/node-red/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:39

          throw err0

                ^

Error: ENOSPC, no space left on device '/home/pi/.node-red'

    at Error (native)

    at Object.fs.mkdirSync (fs.js:747:18)

    at Object.mkdirsSync (/usr/lib/node_modules/node-red/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:22:9)

    at Object.copySync (/usr/lib/node_modules/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:30:36)

    at Object.<anonymous> (/usr/lib/node_modules/node-red/red.js:89:20)

    at Module._compile (module.js:460:26)

    at Object.Module._extensions..js (module.js:478:10)

    at Module.load (module.js:355:32)

    at Function.Module._load (module.js:310:12)

    at Function.Module.runMain (module.js:501:10)


Any Idea ?? I think I'm starting to become a PIA 

Jeff 



On Sunday, November 29, 2015 at 5:58:04 PM UTC-5, Nick O'Leary wrote:

Nicholas O'Leary

unread,
Dec 2, 2015, 7:45:14 PM12/2/15
to Node-RED, pe...@scargill.org

Well, the error message says it all:

error: ENOSPC, no space left on device 

Your disk is full!

What size SD card are you using? Can you share the  output of the command 'df'?

Nick

Blue Collar Ingenuity

unread,
Dec 2, 2015, 7:52:34 PM12/2/15
to node...@googlegroups.com
pi@raspberrypi:~ $ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        3651636 3487244         0 100% /
devtmpfs          469748       0    469748   0% /dev
tmpfs             474052       0    474052   0% /dev/shm
tmpfs             474052    6404    467648   2% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             474052       0    474052   0% /sys/fs/cgroup
/dev/mmcblk0p1     61384   20296     41088  34% /boot
tmpfs              94812       0     94812   0% /run/user/1000
tmpfs              94812       0     94812   0% /run/user/109


--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/32a4woIKeZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

Nicholas O'Leary

unread,
Dec 2, 2015, 8:00:27 PM12/2/15
to node...@googlegroups.com

Is that a 4GB SD card?

(Will pick this up in the morning.)

Blue Collar Ingenuity

unread,
Dec 2, 2015, 9:42:48 PM12/2/15
to Node-RED
Thanks Nick, 
                    It's a 16GB card, I keep installing the new images with win32dsk imager. Should I be reformatting the card first ?

Jeff  

Luis Montes

unread,
Dec 2, 2015, 9:48:39 PM12/2/15
to node...@googlegroups.com
not sure about jessie, but on the previous version you had to run raspi-config on the pi to expand the partition to use the full card.

Mark Setrem

unread,
Dec 3, 2015, 1:26:02 AM12/3/15
to Node-RED
Same in Jessie.

You need to run

sudo raspi-config

https://www.raspberrypi.org/documentation/configuration/raspi-config.md

Ty George

unread,
Dec 5, 2015, 2:49:59 AM12/5/15
to Node-RED
I've only recently started to use it but I'm already building pretty sweet stuff with it :)
So congratulations on the distro include! ... Its most definitely well deserved.

Ty
Reply all
Reply to author
Forward
0 new messages