Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

[BUG] When called with a --package foo@version, npx doesn't cache it #81

Open
kenotron opened this issue Sep 9, 2020 · 1 comment
Open

Comments

@kenotron
Copy link

kenotron commented Sep 9, 2020

What / Why

When npx is invoked with --package foo@1.2.3, npx doesn't cache it (maybe there is a good reason for this, but I can't think of one)

When

When npx is invoked with --package foo@1.2.3

Where

any package

Current Behavior

foo@1.2.3 is not cached

Steps to Reproduce

simply run npx with --package with a @ version - do this more than once

Expected Behavior

You should see the 2nd time that npx does not try to install packages again (caching the first install)

References

Look here:

@stalniy
Copy link

stalniy commented Feb 8, 2021

+1 for this feature! I can even look into fixing it if somebody from npm team approves this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants