I've installed the Particle and the arduino library with npm. In the 'Users/greg'(mac os x) I can see the node-modules folder and all the above mentioned libraries but they won't appear in the editor. I've tried 'Import-Library' but the menu is broken. Any ideas?
Modules need to be installed into 1 of 2 specific location to be used by Node-RED as described in the Adding Nodes documentation here
Import-Library is for importing flows not Node-RED Nodes.
Running npm install <node name>
in your home directory will not install nodes in one of these locations.
Nodes should be installed either globally or in the .node-red
directory in your home directory.
To install them globally you need to add the -g
flag to the install:
npm install -g <node name>
To install into the .node-red directory you needs to be in that directory before running the install command:
cd ~/.node-red
npm install <node name>
You will need to restart Node-RED to have it pick up the new nodes.