0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macosx の node 環境がぐちゃぐちゃになったので再インストール

Posted at

備忘録で。

二つのプロジェクトでnodeを使っているのですが、'npm start'がよくわからないエラーで走らない! (先日何か brewで更新したような・・) どうも小手先の修正で直せそうなエラーではないので nodeごと再インストールしました。 (最悪 macosxのクリーンインストールまで考えたけど、macはnodeでできてるわけじゃないからそこまで必要ないだろうと)

# 一応やってみるけどこれだけでは不足だった
brew uninstall --ignore-dependencies node
# そもそも /usr/localより下を rootにならずに書き換えられるようにしておく必要あり。私のはそうなっていなかった。
sudo chown -R your_login_name:wheel /usr/local

# なんかunlinkできないとかlinkできないとかいわれるのでみつけたnode関連のフォルダは消す!
sudo rm -rf /usr/local/share/doc/node
sudo rm -rf /usr/local/include/node
sudo rm -rf /usr/local/Cellar/node/

# これでやっとクリーンインストールが通りました。
brew install node
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?