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@latestNow, 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@latestFinally, 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.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From this PR #7835
pnpm dlxis 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