How to update a transitive dependency with deno install
?
#26662
Unanswered
nicolo-ribaudo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think there might be no way besides removing the lock file are the moment. We got a PR cooking that would allow to do that (#26219) that we want to ship in Deno v2.1. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At https://github.com/nicolo-ribaudo/local-highlight-registry/tree/efd1ff4fdc2091a7fc5bc6901743c2461037573b, I had to add
"rollup": "npm:[email protected]"
to mydeno.jsonc
because I am using Vite, and[email protected]
had a bug that made it impossible to install it with Deno.That Rollup bug has been fixed, and now I would like to update Rollup to the fixed version. I don't want to simply delete the lockfile, because I don't want to update other unrelated dependencies.
How do I do it?
I tried:
"rollup": "npm:[email protected]"
fromdeno.jsonc
and runningdeno install
. This has no effect.deno install npm:rollup
. This replacednpm:[email protected]
withnpm:rollup@^4.24.3
in mydeno.jsonc
file. However, they are both present in the lockfile and the Vite entry in the lockfile has been updated to explicilty use the old version instead of the new onedeno install npm:rollup
anddeno uninstall npm:rollup
. Same result as above, except that (as expected) I don't have Rollup anymore in mydeno.jsonc
filedeno.jsonc
and fromdeno.lock
'snpm
object and runningdeno install
. It fails with:Beta Was this translation helpful? Give feedback.
All reactions