brew uninstall nodebrew
brew uninstall node
curl -L git.io/nodebrew | perl - setup
.bashrc の最後にパスを追加
cd
vi .bash_profile
下記の2行を追加します
# nodebrew
export PATH=$HOME/.nodebrew/current/bin:$PATH
正しくインストールされたか確認します。
source ~/.bash_profile
nodebrew help
バージョンが表示されればOKです。
nodebrew ls-remote
nodebrew install-binary v9.5.0
nodebrew list
nodebrew use v9.5.0
node -v
バージョン名が正しく表示されればOKです。