Skip to content

[BUG] npm config get prefix super slow #1243

Closed
@DullReferenceException

Description

@DullReferenceException

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

?

References

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 6.xwork is associated with a specific npm 6 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions