deno upgrade shows the error 'Cannot resolve module upgrade'

Viewed 292
deno upgrade
Cannot resolve module "file:///Users/wangjintao/upgrade"

when I run 'deno upgrade' and then show me 'Cannot resolve module'. how to fix it? thank you

I install deno use

curl -fsSL https://deno.land/x/install/install.sh | sh

deno --version is 0.35 I want update it to 1.0.0

env: macOs 10.15.5 and the i try agin run the follow command

curl -fsSL https://x.deno.js.cn/install.sh | sh -s v1.0.0

but the Deno's version still 0.35. May be i should remove deno first and then reinstall. but i hate myself. i dont know how to uninstall deno.

1 Answers

You have an old version of deno installed that does not have upgrade command. Install the latest Deno version, after that you'll be able to do: deno upgrade for future releases.

curl -fsSL https://deno.land/x/install/install.sh | sh

To uninstall deno you can issue the following command:

rm `which deno`
# rm $(which deno)
Related