Closed
Description
What / Why
This is an attempt to resurrect this unresolved bug: npm/npm#14458
For some reason, the command npm config get prefix
is multi-seconds slow. This normally wouldn't bother me, but for users of nvm
like me, this is really impacting since it uses this command internally, and nvm is used in shell startup scripts. See nvm-sh/nvm#782 for more details. Therefore, shell startup is super slow, especially for those using WSL.
When
Always
Where
NPM CLI
How
Current Behavior
Run time npm config get prefix
, see multi-second response timing.
Steps to Reproduce
Run npm config get prefix
Expected Behavior
Result should come back quicker.
Who
?