Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8691

Node.js を完全にアンインストールする

$
0
0

過去に Mac nodebrew で Node.js をインストールする手順の記事を書きました。

現在の私の環境ではnodebrewは削除して、Node.jsnodenvで管理し、nodenvはanyenvで管理してます。

$ brew uninstall nodebrew
$ curl -o uninstall-node.sh https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
$ chmod u+x uninstall-node.sh 
$ ./uninstall-node.sh 
  空Enter でアンインストール処理を進める
$ rm uninstall-node.sh

この辺のディレクトリもあったら消す

$ sudo rm -rf /usr/local/include/node
$ sudo rm -rf /usr/local/lib/dtrace
$ rm -rf ~/.node-gyp
$ rm -rf ~/.npm
$ rm -rf ~/.sourcemint 
$ which node
/usr/local/lib/node

$ rm -rf /usr/local/lib/node
# 診断コマンドを実行
$ brew doctor

# 必要に応じて...
$ brew prune
$ brew cleanup

anyenv のインストール方法

別記事にまとめています。
Mac を買ったら必ずやっておきたい初期設定


Viewing all articles
Browse latest Browse all 8691

Trending Articles