-
Notifications
You must be signed in to change notification settings - Fork 4
Command install
Available since v0.1.0.
Download and install Deno of the specific version or the latest version. This command will try to install the version in the following order:
- Version from parameter.
- Version from .dvmrc file in the current working directory. (Since v0.3.3)
- Version from .dvmrc file in the user home directory. (Since v0.7.1)
- The latest version. (Since v0.3.4)
Since DVM v0.7.1, the install
command will set the new version to the active version for this terminal session. This command will also set the new version to the default
version if no default
alias has been set.
dvm install [version] [--registry=<registry>] [--skip-validation]
-
version
The Deno version to install.
-
--registry=<registry>
Since v0.3.4.
The mirror URL address for Deno binary files. The downloading URL link must be
<registry>/<version>/deno_<os_arch>.[gz|zip]
.For example:
https://github.com/denoland/deno/releases/download
. -
--skip-validation
Since v0.6.2.
Skip Deno version validation.
-
Install the latest Deno (no
.dvmrc
file in the current directory or user home directory):dvm install # No .dvmrc file found # # try to getting deno latest version ... # Found deno latest version v1.15.2 # Downloading and installing deno v1.15.2... # Deno v1.15.2 has installed.
-
Install the specific Deno:
dvm install v1.0.0 # Downloading and installing deno v1.0.0... # Deno v1.0.0 has installed.
-
Install with
.dvmrc
file:cat .dvmrc # v1.0.0 dvm install # Found './.dvmrc' with version v1.0.0 # Downloading and installing deno v1.0.0... # Deno v1.0.0 has installed.