Unhandled Rejection permission denied error

Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/robroyson/.npm/_cacache/index-v5/5d/ad’

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 ERR! A complete log of this run can be found in:
npm ERR! /Users/robroyson/.npm/_logs/2019-09-26T18_54_03_734Z-debug.log
Robs-MBP:twilio-slack-integration robroyson$ npm install
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /Users/robroyson/.npm/_cacache/index-v5/5d/ad
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 501:20 “/Users/robroyson/.npm”

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/robroyson/.npm/_logs/2019-09-26T18_56_19_124Z-debug.log

Have you tried the advice?

npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 501:20 “/Users/robroyson/.npm”

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.