Skip to content

Instantly share code, notes, and snippets.

@theaungmyatmoe
Created October 6, 2023 06:53
Show Gist options
  • Save theaungmyatmoe/09ea2da08ae3e5a86192d1e0672c7dcc to your computer and use it in GitHub Desktop.
Save theaungmyatmoe/09ea2da08ae3e5a86192d1e0672c7dcc to your computer and use it in GitHub Desktop.
npm ERR! code EACCES
⠙ Installing packages (npm)...npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /Users/admin/.npm/_cacache/index-v5/2d/2a
npm ERR! errno EACCES
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 503:20 "/Users/admin/.npm"

Give him permission

sudo chown -R $(whoami) ~/.npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment