起こった問題
MacOSをEl CapitanからSierraにバージョンアップしたところ、
nodebrewのパスが通らなくなった。
ターミナルを再起動すると、commond not foundとなってしまった。
その際の解決方法。
nodebrewインストール
# インストール
curl -L git.io/nodebrew | perl - setup
nodebrewのパスを通す
.bash_profile
# パスを通す。.bash_profile
export PATH=$HOME/.nodebrew/current/bin:$PATH
.bash_profile再読込
source ~/.bash_profile
確認
which nodebrew => /Users/user_name/.nodebrew/current/bin/nodebrew