The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Unhandled rejection Error: EACCES: permission denied (express, npm, install)
What I Wanted to Do
I was attempting to npm install request, I was expecting the request package to start installing
What Happened Instead
Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/Liudachris/.npm/_cacache/index-v5/ef/7e’
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community
npm -install request
This is my first time reporting a bug, I dont know if this helps anyone.
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’,
1 verbose cli ‘/usr/local/bin/npm’,
1 verbose cli ‘install’,
1 verbose cli ‘request’ ]
2 info using firstname.lastname@example.org
3 info using email@example.com
4 verbose npm-session 11f8aab4f9dbd049
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 timing npm Completed in 1348ms
8 error cb() never called!
9 error This is an error with npm itself. Please report this error at:
10 error https://npm.community
$ npm --versions 6.9.0 $ node -p process.platform darwin
Note especially the instructions to fix up past ownership issues after upgrading:
sudo chown -R $USER ~/.npm
(And if you can’t upgrade npm for some reason, run the chown to fix up your current problem.)