Created
July 6, 2018 06:34
-
-
Save yosh1/da6a9f097d68b87a3cd7275ac94e2194 to your computer and use it in GitHub Desktop.
npmが実行できなくて詰まった話(アンインストールから再インストールまで) ref: https://qiita.com/yoshi1125hisa/items/4db4e15840c4a5c27d03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g jsx | |
Unhandled rejection Error: EACCES: permission denied, open '/Users/UserName/.npm/_cacache/index-v5/3d/40/1fc7c6f64e0d481b6e19f1d1ebffb32265d1b9ef080c9667bdedb0df3612' | |
npm ERR! cb() never called! | |
npm ERR! This is an error with npm itself. Please report this error at: | |
npm ERR! <https://github.com/npm/npm/issues> | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /Users/UserName/.npm/_logs/2018-07-05T06_32_41_539Z-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo npm uninstall npm -g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo rm -rf ~/.npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew uninstall node.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nodebrew install-binary latest | |
$ nodebrew ls | |
$ nodebrew use v10.6.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment