Skip to content

Commit fbdd37b

Browse files
committed
Update readme.
1 parent 233076d commit fbdd37b

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

README-CN.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ dvm upgrade
8989
- unzip (Deno v0.36.0及更新的版本)
9090
- gunzip (Deno v0.35.0及更旧的版本)
9191

92+
若需要从源码安装Deno,请确保以下依赖软件已经安装:
93+
94+
- rustc
95+
- cargo
96+
- cc
97+
- cmake
98+
9299
## DVM入门
93100

94101
### 列出已安装的版本
@@ -118,6 +125,14 @@ dvm install v1.0.0
118125
dvn install v0.42.0
119126
```
120127

128+
### 源码安装
129+
130+
DVM v0.8.0及以上版本支持从源码安装Deno:
131+
132+
```sh
133+
dvm install --from-source v1.35.0
134+
```
135+
121136
### 删除版本
122137

123138
使用`dvm uninstall <version>`卸载指定版本:
@@ -179,6 +194,7 @@ DVM支持的命令包括有:
179194
| | `dvm install <version>` | 下载并安装指定的版本 |
180195
| | `dvm install <version> --registry=<registry>` | 通过指定的镜像下载deno |
181196
| | `dvm install <version> --skip-validation` | 下载deno前不对版本进行校验 |
197+
| | `dvm install <version> --from-source` | 编译源码并安装Deno |
182198
| `uninstall` | `dvm uninstall <version>` | 卸载指定的版本 |
183199
| `use` | `dvm use` | 将指定的版本设置为当前使用的版本,未指定版本将从当前目录下的`.dvmrc`文件中读取 |
184200
| | `dvm use <version>` | 将指定的版本设置为当前使用的版本 |

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For Windows users, you must install DVM v0.7.0 or later versions, and also need
1818
- [Installation](#installation)
1919
- [Upgrade DVM](#upgrade-dvm)
2020
- [Prerequirement](#prerequirement)
21-
- [Getting Start](#getting-start)
21+
- [Getting Started](#getting-started)
2222
- [List available versions](#list-available-versions)
2323
- [List installed versions](#list-installed-versions)
2424
- [Install Deno](#install-deno)
@@ -89,7 +89,14 @@ Please make sure you have required dependencies installed:
8989
- unzip (for Deno v0.36.0 and newer versions)
9090
- gunzip (for Deno v0.35.0 and lower versions)
9191

92-
## Getting Start
92+
For installing Deno from source, please make sure you have required dependencies installed:
93+
94+
- rustc
95+
- cargo
96+
- cc
97+
- cmake
98+
99+
## Getting Started
93100

94101
After installed dvm, you can use it to manage multiple version Deno environments.
95102

@@ -129,6 +136,14 @@ dvm install v0.42.0
129136
# Using deno v1.0.0 now.
130137
```
131138

139+
### Install Deno from source
140+
141+
Since DVM v0.8.0, you can install Deno from source with `--from-source` option.
142+
143+
```sh
144+
dvm install --from-source v1.35.0
145+
```
146+
132147
### Uninstall Deno
133148

134149
Use `dvm uninstall <version|alias-name>` command to uninstall a specified version.
@@ -219,6 +234,7 @@ DVM supported the following commands:
219234
| | `dvm install <version>` | Download and install the specified version from source. |
220235
| | `dvm install <version> --registry=<registry>` | Download and install deno with the specified registry. |
221236
| | `dvm install <version> --skip-validation` | Do not validate deno version before trying to download it. |
237+
| | `dvm install <version> --from-source` | Build and install Deno from source code. |
222238
| `uninstall` | `dvm uninstall <version>` | Uninstall the specified version. |
223239
| `use` | `dvm use` | Use the specified version read from .dvmrc. |
224240
| | `dvm use <version>` | Use the specified version that passed by argument. |

0 commit comments

Comments
 (0)