[BUG] "install -g" as user warns to late #7426
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Executing
$ npm install -g <package>
warns about that there are not enough permissions. Make sense because I am user not root.The problem is that this warnings comes to late. There is a lot of downloading going on wasting time and resources (and carbon dioxid) before this warning comes up. I assuming npm can realize a bit more early that the requested job (install -g) is not possible in the current (user) environment.
Expected Behavior
Warn much earlier before wasting to much ressources.
Steps To Reproduce
See above.
Environment
The text was updated successfully, but these errors were encountered: