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

Reproduction Steps

npm -install request

Details

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 npm@6.9.0
3 info using node@v10.16.1
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

Platform Info

$ npm --versions
6.9.0
$ node -p process.platform
darwin

Hi @clrminded ! This should be fixed by updating npm to 6.10.2 and resetting ownership: Release: 6.10.2

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.)