Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

nvm

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What are the problem?