Linux Node-Red Operating Systems Projects

Install Node-Red on Centos 7

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

 

      1. once you have centos installed you will need to make sure it has been updated.
    # sudo yum update -y
    
      1. install Extra Repositories
    # sudo yum install epel-release -y
    
      1. install wget
    # sudo yum install wget -y
    
      1. install Node.JS and npm
    # sudo yum install nodejs
    
      1. install Node-Red
    # sudo npm install -g node-red
    
      1. Verify the Node.js and npm Installation
    # node --version
    v6.14.3
    # npm --version
    3.10.10
    
    1. Install Service Script
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/

2 thoughts on “Install Node-Red on Centos 7”

Leave a Reply

Your email address will not be published. Required fields are marked *