How to downgrade Deno
Asked Answered
S

3

6

Using Aleph with Deno found a bug, with the incompatible versions and I need to downgrade. How I can downgrade the deno version from 1.8.1 to 1.6.3 without uninstalling it?

Sind answered 18/3, 2021 at 8:45 Comment(0)
G
13

You can use deno upgrade command with specified version for upgrade or downgrade the deno.

deno upgrade --version 1.6.3
Grafting answered 18/3, 2021 at 8:51 Comment(0)
P
1

I use dvm (an alternative to node's nvm) to have various deno versions installed (for aleph.js). One can easily switch the version using dvm use VERSION command.

dvm use 1.8.2
Penal answered 30/3, 2021 at 2:29 Comment(0)
C
0

upgrade/downgrade :

deno upgrade --version 2.0.0

after upgrading you might need to reload the lock cache with --write-lock param

or manually remove them rm deno.lock

for monorepos find . -name "deno.lock" -type f -delete

Cubical answered 16/10 at 9:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.