Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
asears opened this issue Feb 7, 2021 · 1 comment
Closed

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

asears opened this issue Feb 7, 2021 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@asears
Copy link

asears commented Feb 7, 2021

Current Behavior:

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?

Expected Behavior:

Updating the code in a gist should be picked up by the installer as a difference or change, or installed each time npx is run.

Steps To Reproduce:

Running npx 7.5.1 from a Windows command line, 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

  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 rather than latest.

Environment:

Windows 19041.746.
Node 15.8.0
npm/npx: 7.5.1

@asears asears added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Feb 7, 2021
@wraithgar
Copy link
Member

This was fixed in v7.5.2 #2329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

2 participants