Node RED Installation - langanjp/PI-NodeRED GitHub Wiki

If you have Raspbian Jessie, then you already have an (older) version of Node-RED installed. We are going to update the version that you have. If you already have some flows built, you may want to back them up first as (see Node-RED Backup).

Details can be found at: http://nodered.org/docs/hardware/raspberrypi

Upgrading Node-RED and node.js

To upgrade to the latest versions, run the command (as the PI user):

update-nodejs-and-nodered

Note:

  • if you have run this update before, and now are missing the serialport node, re-run the update
  • if you get a message that says you don't have permissions on the script, navigate to /usr/bin and type: sudo chmod 755 update-nodejs-and-nodered

Starting Node-RED

From a command prompt:

node-red-start

Stopping Node-RED

From a command prompt:

node-red-stop

Monitoring Node-RED

If you would like to see the console output, from a command prompt:

node-red-log

Starting Node-RED as a service

If you would like Node-RED to automatically start from boot, from a command prompt:

sudo systemctl enable nodered.service

Next Section:

Node-RED Settings