Skip to content

Instantly share code, notes, and snippets.

@RickyVaughn2
Created February 19, 2019 23:20
Show Gist options
  • Save RickyVaughn2/58deb37e7ca789bb216fbc30949b1bd9 to your computer and use it in GitHub Desktop.
Save RickyVaughn2/58deb37e7ca789bb216fbc30949b1bd9 to your computer and use it in GitHub Desktop.
basic nr
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g --unsafe-perm node-red
sudo npm install -g node-red-admin
sudo npm install -g pm2
pm2 start /usr/bin/node-red -- -v
pm2 save
pm2 startup
#sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u ubuntu --hp /home/ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment