Otherwise install the nodes in the .node-red directory of the user you are running node-red as
My guess is that as you are running as sudo, $HOME will be roots home not the regular users. You can confirm what userDir it is using as it logged on start up - that is where you should run the npm install command.
Of course, as you've successfully used the node-red-admin tool, you can use that to install nodes:
node-red-admin install node-red-contrib-mysensors
That will cause the runtime to install the node in userDir for you.
Nick
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.