[BUG] NPX uses cached GIST instead of latest
asears opened this issue · 2 comments
asears commented
What / Why
Installing from Gist using package.json and js file is a really interesting use of npx.
Trying this out on Windows, I found it cached the first gist version of the package and any changes to the gist weren't picked up.
Deleting the cache fixes this. Is there a command line option to delete the cache?
When
Running npx 7.5.1. I was able to replicate by simply creating a basic gist with an error, then trying to fix it.
https://gist.github.com/asears/cf8d95776e13f6472c1fb56b57659400
Where
Command line on Windows.
How
Current Behavior
- n/a
Steps to Reproduce
- Create a gist with a bug.
- npx https://my-gist-url
- Fix the gist
- npx https://my-gist-url
Cached version will be used.
Expected Behavior
Should install latest Gist.
Who
- n/a
References
- n/a
ljharb commented
npx in npm 7 lives inside the cli repo; I’d suggest filing this there.
ljharb commented
moved to npm/cli#2641