I tried running react-create-app (app_name) but ended up having a problem. I also tried cleaning the cache, –force, same issue. I tried deleting the node module file I previously had and reinstallingenter image description here but still ended up with the same problem.
I need to install the react app to begin working on the project.
2
Answers
Try changing the installation folder directory
Change the permission of npm’s cache directory
Find the path of npm cache
$ npm config get cache
This will give you, for osx
/Users/name/.npm
Change the ownership to current user
$ sudo chown -R $(whoami) $(npm config get cache)
This changes the permission to the subfolders also.
More on Fixing npm EACCESS errors