Install nvmbrew update

brew install nvm

Then edit ~/.bashrc:

export NVM_DIR=~/.nvm

source $(brew --prefix nvm)/nvm.sh

Install nodenvm ls-remote

nvm install 4.5.0

nvm ls

nvm use 5.10.1

nvm alias default 4.5.0

Uninstall nodenvm uninstall 4.5.0