Skip to content

Instantly share code, notes, and snippets.

@yosh1
Created July 6, 2018 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosh1/da6a9f097d68b87a3cd7275ac94e2194 to your computer and use it in GitHub Desktop.
Save yosh1/da6a9f097d68b87a3cd7275ac94e2194 to your computer and use it in GitHub Desktop.
npmが実行できなくて詰まった話(アンインストールから再インストールまで) ref: https://qiita.com/yoshi1125hisa/items/4db4e15840c4a5c27d03
$ 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
$ sudo npm uninstall npm -g
$ sudo rm -rf ~/.npm
$ brew uninstall node.js
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.*
$ 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