Search code examples
node.jsraspberry-piraspbiannode-red

Path of Node Red node on PI


I try to install the sensorTag package with npm. GitHub Link

In the readme I have to set executable by non-root user, with the following command:

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

I'm new with PI, Node Red and Raspbian. Can someone say what 'which node' mean? Where can I find the path?

Is the path from process.execPath the correct path?


Solution

  • which is a linux command to find where 'node' is installed setcap set's same file permissions to cap_net.. as found for the link where node is installed...

    all abit complicate, basically it allows users to access cap_net as mentioned on the github side