Having trouble to find the node in ubuntu 14.04 after installing
Solution 1:
As seen here
-
Run command:
which node
and in my case it displayed
/usr/sbin/node
. -
If it says command not found, skip to 3. Remove it by
sudo rm /usr/sbin/node
-
Run command:
which nodejs
In my case it displayed
/usr/bin/nodejs
-
Make a link
sudo ln -s /usr/bin/nodejs /usr/bin/node
OR
sudo ln -s /usr/bin/nodejs /usr/sbin/node
Solution 2:
Run command:
nodejs -v
For more information: See here.