LoginSignup
0
0

More than 5 years have passed since last update.

Mac OS X から Node.js をアンインストールする方法

Last updated at Posted at 2019-01-19

Atomでsassを使いたくて色々としていましたが、うまくできなかったので一度アンインストールしたくてやってみました。

npm とは?

Node Packaged Modules(npm)とはNode.jsのライブラリやパッケージを管理することができるツールです。 ライブラリやパッケージの管理ツールを主にパッケージマネージャと呼びます。 ... Node.jsのパッケージマネージャであるnpmは、Node.jsと一緒にインストールされています。

参考:https://team-lab.github.io/skillup-nodejs/2/4.html

アンインストール

下記をterminalにコピペして実行。

lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \
| while read i; do
  sudo rm /usr/local/${i}
done
sudo rm -rf /usr/local/lib/node \
     /usr/local/lib/node_modules \
     /var/db/receipts/org.nodejs.*

参考
https://stackoverflow.com/questions/9044788/how-do-i-uninstall-nodejs-installed-from-pkg-mac-os-x

その後はNPMも削除。
```ruby:
sudo rm -rf ~/.npm

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