Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
1

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 3 years have passed since last update.

【備忘録】NPM / Node / Homebrewのアンインストール

Last updated at Posted at 2020-04-19

Vue.jsを勉強した際の備忘録として書きます。
Vue Cli3を入れようとしましたが、エラーが表示されインストールできませんでした。
その為、一度NPM / Node / Homebrewをアンインストールすることにしました。

目次

  • NPM / Node / Homebrewのアンインストール
    • NPMのアンインストール
    • Nodeのアンインストール
    • Homebrewのアンインストール

NPM / Node / Homebrewのアンインストール

NPMのアンインストール

sudo npm uninstall npm -g

参照URL http://umekov.hatenablog.com/entry/2016/12/03/000001

Nodeのアンインストール

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh

参照URL https://gist.github.com/nicerobot/2697848

上記でうまくいかなければこちら。

rm -rf /usr/local/bin/node

参照URL https://qiita.com/wagi0716/items/94193a80502f9d81a9e0

Homebrewのアンインストール

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

上記がうまくいかなかったので下記で対応。

cd `brew --prefix`
git checkout master
git ls-files -z | pbcopy
rm -rf Cellar
bin/brew prune
pbpaste | xargs -0 rm
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions 
test -d Library/LinkedKegs && rm -r Library/LinkedKegs
rmdir -p bin Library share/man/man1 2> /dev/null
rm -rf .git
rm -rf ~/Library/Caches/Homebrew
rm -rf ~/Library/Logs/Homebrew
rm -rf /Library/Caches/Homebrew

参照URL https://superuser.com/questions/203707/how-to-uninstall-homebrew

0
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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?