It’s been a while since i have done anything with my ESP8266 development boards, so I’m now going to pick the back up and see what has changed.
One big change is the introduction of node-red on this page I’m going to go through the install process on Centos 7
-
-
- once you have centos installed you will need to make sure it has been updated.
-
# sudo yum update -y-
- install Extra Repositories
# sudo yum install epel-release -y-
- install wget
# sudo yum install wget -y-
- install Node.JS and npm
# sudo yum install nodejs-
- install Node-Red
# sudo npm install -g node-red-
- Verify the Node.js and npm Installation
# node --version
v6.14.3
# npm --version
3.10.10- Install Service Script
sudo wget -O /etc/systemd/system/Node-Red.service https://raw.githubusercontent.com/ktndesai/Node-RED/master/Node-Red.servicefor this i had to modify the script to point to the locations of node.js and node-red
the following 2 lines were changed in the file ” /etc/systemd/system/Node-Red.service”
ExecStart=/usr/bin/node $NODE_OPTIONS /lib/node_modules/node-red/red.js $NODE_RED_OPTIONS
WorkingDirectory=/root/.node-red/
Leave a Reply