Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im trying to install node.js and I made the mistake of installing apt-get install node. Which is not node.js.

I'm able to find the right node.js on git hub, build and make everything. Everything seems to be installed. But I get this error when executing node -v

~/node$ node -v
-bash: /usr/sbin/node: No such file or directory

Any ideas on how to make node -v work?

Also, on ubuntu 10.04 if it helps

share|improve this question
what shell, try rehash to rescan the completion directories. Also if you are in the directory where the binary is and it isn't in your path. try ./node -v – Doon Sep 14 '11 at 2:58
yes, i can get node to run by doing /usr/local/bin/node node -v.. tho i'd like to be able to run it using simply node -v – brian Sep 14 '11 at 16:52
do you have /usr/local/bin in your $PATH? (type echo $PATH to test) – pqnet Sep 1 '14 at 11:11

it looks like you removed(uninstalled) node from /usr/sbin, just make sure that /usr/local/bin in in your path and run

bash: hash -r

zsh: rehash

And your shell should pick up the new location, and run it for you.

share|improve this answer

Since CTTE #614907 you're simply supposed to apt-get install nodejs and proceed further by confirming the removal of the node package. You've gotta choose one over the other because of the name conflict.

share|improve this answer

You need to purge node and related packages:

sudo apt-get purge node

sudo apt-get purge

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.