[BUG] npx is too slow for already cached package with specific version requested #7295
Open
2 tasks done
Labels
Enhancement
new feature or improvement
perf
For performance related issues
Priority 2
secondary priority issue
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I'm
npx
ing a specific version of a package that's already beennpx
ed before.There is a long delay (at least 3 seconds) even before it fetches the package information from the registry (which, why is this necessary for a specific version that's already installed?) and using
--ddd
doesn't provide any information why the delay is happening.Expected Behavior
npx
should be virtually instantaneous for a specific version of a package that's already installed. I expected it to not fetch anything from the registry if the package is already in cache.Steps To Reproduce
npx --ddd gen-typed-validators@1.0.0
several timesEnvironment
The text was updated successfully, but these errors were encountered: