5
4

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.

Macでパッケージ版Node.jsのアンインストール

Posted at

概要

Mac OS Mojaveでパッケージ版Node.jsを。

環境

  • Mac OS Mojave 10.14.6
  • Node.js v4.5.0 (どんだけ古いねん!)

状況

  1. 色々なサイトで書かれている下記ではNo such file or directoryエラー

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


# 手順

npm uninstall -g npm
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf ls /usr/local/include/node
sudo rm /usr/local/bin/node
sudo rm /usr/local/share/man/man1/node.1
sudo rm /usr/local/lib/dtrace/node.d
sudo rm -rf /usr/local/share/doc/node/
sudo rm /usr/local/share/systemtap/tapset/node.stp


#参考
https://stackoverflow.com/questions/9044788/how-do-i-uninstall-nodejs-installed-from-pkg-mac-os-x?noredirect=1&lq=1
5
4
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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?