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

[BUG] NPX uses cached GIST instead of latest #96

Closed
asears opened this issue Feb 6, 2021 · 2 comments
Closed

[BUG] NPX uses cached GIST instead of latest #96

asears opened this issue Feb 6, 2021 · 2 comments

Comments

@asears
Copy link

asears commented Feb 6, 2021

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

  1. Create a gist with a bug.
  2. npx https://my-gist-url
  3. Fix the gist
  4. npx https://my-gist-url

Cached version will be used.

Expected Behavior

Should install latest Gist.

Who

  • n/a

References

  • n/a
@ljharb
Copy link

ljharb commented Feb 7, 2021

npx in npm 7 lives inside the cli repo; I’d suggest filing this there.

@asears asears closed this as completed Feb 7, 2021
@ljharb
Copy link

ljharb commented Feb 7, 2021

moved to npm/cli#2641

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