Something I spotted today on booting a node script on the Edison (if not using XDK)
Run a Script on Edison Boot | Shawn Hymel
The point of interest for me is the line:
Environment="NODE_PATH=/usr/lib/node_modules/"
I'm guessing that this stores the node modules in the lib folders as previously when I've used NPM to install node packages I've spotted it has been putting them under /home.
It looks like we can set this using:
export NODE_PATH=/usr/lib/node_modules:$NODE_PATH
There also seems to be an "npm -g" option but others seem to recommend against this.
No Need for npm -g | Peter Lyons
Any thoughts or recommendations on best practice for the Edison?