It’s been a while since i have done anything with my 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.
- install Extra Repositories
- install wget
- install Node.JS and npm
- install Node-Red
- Verify the Node.js and npm Installation
- Install Service Script
# sudo yum update -y
# sudo yum install epel-release -y
# sudo yum install wget -y
# sudo yum install nodejs
# sudo npm install -g node-red
# node --version v6.14.3 # npm --version 3.10.10
sudo wget -O /etc/systemd/system/Node-Red.service https://raw.githubusercontent.com/ktndesai/Node-RED/master/Node-Red.service
for 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/