Node-RED installation on Debian

Installing with npm

  1. Install node.js
    apt install nodejs npm
  2. Install node-red
    npm install -g –unsafe-perm node-red
  3. run node-red
  4. 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

 

 

Napsat komentář