LoginSignup
1
1

More than 5 years have passed since last update.

nvm

Last updated at Posted at 2015-04-22

What is nvm ?

nvm stands for Node Version Manager.

Install

terminal
$ brew install nvm

brew

Setting

terminal
$ vi ~/.bash_profile
# Add the follwoing 2 lines in the end of file
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh 

Sample usage

terminal
$ nvm install 0.12
$ nvm use 0.12
$ node
> ...

Tips

Default node version

Every time you launch new terminal, you need to specify node version.
If you do not specify and try to use node, command not found error returns.

terminal
$ node
-bash: node: command not found

To avoid this, you can set default alias

terminal
$ nvm alias default 0.12
1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1