npm / npm-v7-blog

a repo to hold blog posts about npm v7 that'll end up on the npm blog
https://blog.npmjs.org/
14 stars 4 forks source link

[BUG] Error with permissions and setting npm-global directory #4

Closed natac13 closed 3 years ago

natac13 commented 4 years ago

What / Why

I upgraded to npm 7.0.0-beta.10 and I can no longer deal with global packages due to permissions. I have already had this setup from the docs done and working fine. However when I went to upgrade a global package I received the permission error as the package was trying to be installed in /usr/local/lib/node_modules/[package]

This is even stopping my ability from downgrading npm......

Even trying to change npm versions with n is not working....

When

I ran any npm i -g command

darcyclarke commented 3 years ago

Hey @natac13! Sorry for the delay here. If you're still experiencing this issue, can you please file a ticket over on the npm/cli repo?