Installing with npm
- Install node.js
apt install nodejs npm - Install node-red
npm install -g –unsafe-perm node-red - run node-red
- open http://ipaddress:1880
Installing with RPI script
- Install curl + npm + sudo
apt install curl npm - Run installation script
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
Are you really sure you want to install as root ? (y/N) ? y
Are you really sure you want to do this ? [y/N] ? y
Would you like to install the Pi-specific nodes ? [y/N] ? N
- run Node-RED
node-red-start - Autostart on boot
systemctl enable nodered.service
TODO: run nnode-red as non root user