Node Red is pre-installed with the November 2015 Raspbian Jessie release. Node Red has information regarding the install here. These are some notes on how it is installed for sys admins.
NPM is not installed so if you plan on adding nodes from the Node Red flow repository, you'll need to install npm:
sudo apt-get install -y npm sudo npm install -g npm@2.x hash -r
To install a flow:
cd ~/.node-red npm install node-red-{example node name}
The start/stop script is installed at /etc/init.d/nodered. It supports start, stop & restart options.
sudo service nodered restart
To setup Node Red to automatically stat on boot, run this command:
sudo systemctl enable nodered.service
Node Red is configured to write log messages to:
/var/log/syslog
Here are the locations of other key files & directories:
[table nl="~~"]
File / Directory,Location
User Directory,/home/pi/.node-red
Settings File,/home/pi/.node-red/settings.js
Flows File,/home/pi/.node-red/flows_raspberrypi.json
[/table]