force fresh install (clear cache) of single package from tarball #8568
Unanswered
theoephraim
asked this question in
Q&A
Replies: 1 comment
-
I see that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using pkg.pg.new to test out preview releases of packages. This means that I'm installing packages from a remote URL related to the PR (ex:
https://pkg.pr.new/@myorg/sometool@123
) which points to a tarball. As my PR is updated, the remote tarball will be updated, but it seems that pnpm wants to cache it locally and will not actually re-install the updated tarball.Maybe I'm missing something in the docs, but is there a simple way to force a fresh install of a specific package?
Things that do not work:
pnpm i
pnpm i --force
pnpm i https://pkg.pr.new/@myorg/sometool@162 --force
pnpm cache delete @myorg/sometool && pnpm i
pnpm cache delete https://pkg.pr.new/@myorg/sometool@162 && pnpm i
The only thing that does work is clearing the entire cache --
pnpm store prune && rm -rf node_modules && pnpm i
But this is obviously undesirable, as it clears the entire pnpm store. I just want to re-install this specific package.
Beta Was this translation helpful? Give feedback.
All reactions