LoginSignup
2
1

More than 5 years have passed since last update.

nodebrewが壊れた

Posted at

概要

利用しているMacBookに入っているnodebrewを久しぶりに使おうとしたら

$ nodebrew install-binary latest

実施するとなぜか最新のnodeがインストールできなかった。
なんかダウンロードファイルが見えない的なエラーがでてた。

仕方ないのでなんとかしようと思った。

本来はこうすればよかったんだと思う(未確認)

$ nodebrew selfupdate

これでnodebrewをバージョンあげて利用する

こんなことしてしまった。

brewでインストールしたものと思ってたんですが、どうやら別で入れてたみたい。

$ brew install nodebrew

でうまく動作しなかったので
完全に抹消したかった

$ cd 
$ rm -rf .nodebrew

これを実行してしまった。

$ brew install nodebrew

これでシステム的にnodebrewは入った。
ただし、次のような状態になってしまった。

$ nodebrew install-binary latest
-bash: /Users/taktod/.nodebrew/current/bin/nodebrew: No such file or directory

こうやったら治った

$ cd .nodebrew/
$ ln -s /usr/local/opt/nodebrew current

これで.nodebrew/current/bin/nodebrewが見える状態になった。

$ nodebrew install-binary latest
$ node -v
v9.2.1

よかったよかった。

2
1
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
2
1