Node Version Manager

Manual install:

$ git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout v0.31.0
$ echo "source ~/.nvm/nvm.sh" >> ~/.zshrc
$ source ~/.zshrc

Check if works:

$ nvm --version
0.31.0

Install Node.js

Get a list of available installations:

$ nvm ls-remote
[...]
v5.7.1
v5.8.0
v5.9.0

Install Node

$ nvm install v5.9.0

Check

$ node -v