LoginSignup
0
1

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
0
1