Nodes don't show up in Node-red interface

478 views
Skip to first unread message

Waqas Ahmed

unread,
Dec 3, 2015, 5:30:41 AM12/3/15
to Node-RED
Hi.

I have tried to add various other nodes but none of them show in node-red interface. I followed the exact procedure described in http://nodered.org/docs/getting-started/adding-nodes.html

Here is what I have done.

1)    sudo service nodered stop
2) cd $HOME/.node-red
3) npm install node-red-contrib-mysensors

There is following out put

0.7.5 ../node_modules/node-red-contrib-mysensors

4) sudo service nodered stop

Visited nodered gui but node does not appear there. I have tried with various other nodes such as "node-red-node-serialport" and others, none was observed successful. May someone help me?


Waqas Ahmed

unread,
Dec 3, 2015, 5:45:58 AM12/3/15
to Node-RED
I have installed "Command-line Administration" and issued a list command, it give following output which shows new nodes did not installed.


 

Mark Setrem

unread,
Dec 3, 2015, 6:08:20 AM12/3/15
to Node-RED
fron the directory you have installed in. Try running node-red directly from the command line eg node-red-pi

Otherwise install the nodes in the .node-red directory of the user you are running node-red as

Waqas Ahmed

unread,
Dec 3, 2015, 7:51:13 AM12/3/15
to Node-RED
Hi Guys, I have came up with the solution and wanted to share with you, as I found Node-red installed in /usr/lib/node_modules/node-red. So Here is how the problem solved.

Issue following commands;

1)    cd /usr/lib/node_modules/node-red

Now You can install any node of your choice i.e. 

2)     sudo npm install node-red-contrib-mysensors

Restart Node-red

3)     sudo service nodered restart

Now you can find your installed node in red-node.

Nicholas O'Leary

unread,
Dec 3, 2015, 6:57:06 PM12/3/15
to Node-RED

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.
Reply all
Reply to author
Forward
0 new messages