14 Mar 2016

Node Red Install on Mac OS X

These are notes on a local install of Node Red on Mac OS X. These instructions assume Node & NPM are already installed. The main instructions are here and here.

Node Red Install

Install Node Red in your local account

npm install -g --unsafe-perm node-red

Make the directory for your local files:

mkdir .node-red

Files & Directories

Here are the key file and directory locations after the install

[table nl="~~"]
File / Directory,Location
Node Modules,/usr/local/lib/node_modules
User Directory,/Users/<user>/.node-red
Settings File,/Users/<user>/.node-red/settings.js
Flows File,/Users/<user>/.node-red/flows_<hostname>.json
Executable,/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-red-pi
Executable,/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js

[/table]

cd ~/.node-red
npm install node-red-{example node name}

Installing Addtional Modules

Here are the commands to install some selected modules:

npm install request node-gyp thethingbox-node-timestamp node-red-node-mongodb
npm install node-red-contrib-openzwave

Run

/usr/local/bin/node-red -v

Logging

Node Red is configured to write log messages to:

?


Tags:
0 comments