Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I am trying to install node version manager and followed the installation instructions provided at its Github page.

Installation got over but now I am getting an error as command not found: nvm when I try using nvm install 0.8

Can someone please help me find out why I am gettting an error that nvm is not found when I have already installed it.

share|improve this question
What steps did you already take? Was the installation successful? – guntbert Mar 18 '13 at 19:22
Please post the commands (and their output) you ran before nvm install 0.8. – Eric Carvalho Mar 18 '13 at 23:21
Apparently you did not install it. – psusi Apr 20 '13 at 19:43
Close and open your Terminal. Type the following command to verify nvm command works. nvm – Hossein Aarabi Feb 20 '15 at 18:17

The problem is that you need nvm to be automatically sourced upon login, so either add the following line to your ~/.bashrc or ~/.profile file.

[[ -s $HOME/.nvm/ ]] && . $HOME/.nvm/

Also nvm doesn't set any version of node automatically so if you just installed nvm and installed a node version and try to use node the next time you login, you get an error that command not found: node unless you use the nvm use versionnumber command in every terminal session, so Instead I suggest you to set a default alias so that a default version of node is active for every terminal session using the following command

nvm alias default versionnumber

PS: In the above commands version number denotes the version number of nodejs that you have already installed using nvm

share|improve this answer

Simply Try

  1. source ~/.nvm/
  2. Then You Can Easily: nvm install 0.10
share|improve this answer
that may work temporarily, but will you need to re-source the file for every terminal session? – Alex Mills Jun 7 at 20:58

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.