-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] npm config get prefix super slow #1243
Comments
cc @darcyclarke; this actually would make a ton of difference for every nvm user, including every travis-ci run. |
🤔 I'm positive there's some digging to be done here |
Has any progress been made with this? I would be interested in helping with this issue. |
Recently, |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
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 ofnvm
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
?
References
npm config get prefix
takes incredibly long (7 - 70 seconds) npm#14458, NVM is slow (> 650ms) nvm-sh/nvm#1242The text was updated successfully, but these errors were encountered: