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 :relaxed:

1 Like

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