适用于 deno 的多版本管理工具 dvm 发布

不知不觉中,deno 已经默默的发布了 3 个版本了:

  • 0.1.0
  • 0.1.1
  • 0.1.2

昨晚通宵做了一个 deno 多版本的管理工具: dvm。 github 地址: https://github.com/justjavac/dvm

功能基本参考了 nvm。

安装

```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


<p><strong>在 Windows 平台需要使用管理员权限打开命令行或者 PowerShell</strong></p>
<h2>示例</h2>
<h3>列出所有已安装版本</h3>
```➜  ~  dvm list
   0.1.0
*  0.1.1
   0.1.2

前面的星号(*)表示当前正在使用的版本。

切换版本

```➜ ~ 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

来源:https://segmentfault.com/a/1190000016279599

posted on 2018-12-25 15:16  夜里码码  阅读(291)  评论(0编辑  收藏  举报

导航