shbrew install nodebrew nodebrew -v # これを設定しないと Node をインストールできない nodebrew setup
.zshrc
にPATH
を追記する。
.zshrcexport PATH=$HOME/.nodebrew/current/bin:$PATH
shsource ~/.zshrc where node # /Users/user/.nodebrew/current/bin/node
shbrew uninstall nodebrew
.zshrc
のPATH
を戻す。
shnodebrew ls-remote
shnodebrew ls
shnodebrew install v14.18.2 nodebrew install v16.13.0
shnodebrew uninstall v14.18.2 nodebrew uninstall v16.13.0
shnodebrew use v14.18.2 node -v
PATH
を設定して、use
を使用してもバージョンが切り替わらない場合は、nodeのbinaryがない場合があるので、一度uninstall
してから、install
する。