The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
This is an error with npm itself Please help
Hi. I’m trying to install the environnement for Create React Native App via Terminal, but I fail and I see error messages. Please, help me to resolve this issue.
Thank you in advance.
This is what I see:
Unhandled rejection Error: EACCES: permission denied, mkdir ‘/Users/elenaevlanenkova/.npm/_cacache/index-v5/78/a4’
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:
Your issue is a known problem with file ownership being broken by past uses of sudo with global installs. This was fixed in: Release: 6.10.2
The quick fix is:
sudo chown -R $USER ~/.npm
If you are able to update npm to avoid the problem happening again, upgrade npm and then run the chown again one last time to fix any issues from the upgrade itself.
Thank you very much for your answer, John.
It works now