Having trouble to find the node in ubuntu 14.04 after installing

Solution 1:

As seen here

  1. Run command:

    which node
    

    and in my case it displayed /usr/sbin/node.

  2. If it says command not found, skip to 3. Remove it by

    sudo rm /usr/sbin/node
    
  3. Run command:

    which nodejs
    

    In my case it displayed /usr/bin/nodejs

  4. 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.