Stefano Di Cecco
Stefano Di Cecco

Reputation: 101

How to downgrade Deno

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?

Upvotes: 7

Views: 2896

Answers (3)

Hamid Shoja
Hamid Shoja

Reputation: 4778

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

Upvotes: 0

Mayur Borse
Mayur Borse

Reputation: 11

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

Upvotes: 1

Engincan Veske
Engincan Veske

Reputation: 1585

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

deno upgrade --version 1.6.3

Upvotes: 14

Related Questions