Why is pnpm dlx <package>@latest
not bypassing cache?
#8630
Unanswered
devjiwonchoi
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Same problem. Step 1: Execute an example package$ pnpm info create-example@latest
# Got latest: 0.0.1
$ pnpm dlx create-example # or pnpm create example@latest Now, we installed Step 2: Update example packageModify Step 3: Execute the example package with newer, exact version$ pnpm dlx create-example@0.0.2 # or pnpm create example@0.0.2 This time v0.0.2 be installed into [cache-dir] Step 4: Try execute example@latest$ pnpm dlx create-example@latest # or pnpm create example@latest Finally, the process
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I have no idea what is expected. One of the most upvoted issues was to make dlx fast by using a cache. Any addition rules will make it slower. You can always run it with an exact version. I doubt it is a frequent scenario. This should currently work to skip cache:
cc @KSXGitHub |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From this PR #7835
pnpm dlx
is enabled with cache for a DAY, but when we run a package with@latest
, we expect to fetch the latest package.@latest
?Beta Was this translation helpful? Give feedback.
All reactions