不知不觉中,deno 已经默默的发布了 3 个版本了:java
昨晚通宵作了一个 deno 多版本的管理工具: dvm。 github 地址: https://github.com/justjavac/dvmgit
功能基本参考了 nvm。github
npm install -g dvm
➜ ~ dvm --help Usage: dvm [options] [command] Options: -v, --version output the version number -d, --debug Print verbose infos for debug -h, --help output usage information Commands: arch Show if deno is running in 32 or 64 bit mode list List all installed versions install <version> Install deno <version> use [version] Switch to use the specified version
在 Windows 平台须要使用管理员权限打开命令行或者 PowerShellnpm
➜ ~ dvm list 0.1.0 * 0.1.1 0.1.2
前面的星号(*
)表示当前正在使用的版本。bash
➜ ~ dvm use 0.1.2 now use 0.1.2 ➜ ~ dvm use 0.0.2 deno v0.0.2 is not installed. Use `dvm install 0.0.2` to install it first.
目前功能比较简陋,bug 也很多,欢迎 issue https://github.com/justjavac/dvm工具