LoginSignup
5
3

More than 5 years have passed since last update.

macOSでnodebrewインストールしたらパスが通らなくなった話と解決方法

Posted at

起こった問題

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
5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3