What is nvm ?
nvm stands for Node Version Manager.
Install
terminal
$ brew install nvm
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