Node command looks for executable specifically at /usr/sbin
Installed Fedora 19 just today, am very pleased at the interface..
yum install npm, 103 files downloaded, installed and cleaned after. 'npm' command works fine, i manage to install my dependencies, but 'node' command doesn't work, it doesn't find the executable at '/usr/sbin/node'.
cd over to /usr/sbin and it really doesn't have any node exec.
but /usr/bin does - /usr/bin/node is there. working just fine..
$PATH includes both /usr/sbin and /usr/bin.. so what am missing?
cp /usr/sbin/node to /usr/sbin/node and 'node' command does work now, but why didn't it find it at /usr/bin?
Hello,
First, why do you insist on having node in /usr/sbin rather than /usr/bin/? I guess node can be launched by any user of your system.
Second, copying a binary manually from one place to another is really not the right solution, and it's even totally insane (what will happen when there'll be an update of the package). I'd advice you to remove the binary you copied in /usr/sbin/ and trying to understand the problem instead of using "workaround".
I guess i got used to /usr/bin, wasn't aware of /usr/sbin at all, still, wonder why node wants it specifically there.. Regarding copying binary, sorry i wasn't clear, i copied the soft link, not the binary itself