force fresh install (clear cache) of single package from tarball #8568
Unanswered
theoephraim
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
I see that |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Still seems to be an issue. Anyone have an idea of what is going on? The only workaround for now is to use the commit hash rather than the PR number, but this is quite cumbersome in an already very awkward workflow... |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 ipnpm i --forcepnpm i https://pkg.pr.new/@myorg/sometool@162 --forcepnpm cache delete @myorg/sometool && pnpm ipnpm cache delete https://pkg.pr.new/@myorg/sometool@162 && pnpm iThe only thing that does work is clearing the entire cache --
pnpm store prune && rm -rf node_modules && pnpm iBut 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