2 minutes
Permission issue with npm while installing react-devtools
👴 Careful You’re reading an old article ! Some links might be broken and content may be outdated
I had this error once while trying to install the npm package react-devtools.
The issue was that I was previously installing npm packages using the root user.
It’s a mess afterwards and it’s easier to handle when the owner is your current user. So, I changed the owner of my folder node_modules using the following command :
And it worked like a charm !
Read other posts