Why is pnpm dlx <package>@latest
not bypassing cache?
#8630
Replies: 3 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 [email protected] # or pnpm create [email protected] 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.
-
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.
-
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