deno_install
One-line commands to install Deno on your system.
Install Latest Version
With Shell:
curl -fsSL https://deno.land/x/install/install.sh | shWith PowerShell:
iwr https://deno.land/x/install/install.ps1 -useb | iexInstall Specific Version
With Shell:
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.0.0With PowerShell:
$v="1.0.0"; iwr https://deno.land/x/install/install.ps1 -useb | iexInstall via Package Manager
With Scoop:
scoop install denoWith Homebrew:
brew install denoWith Chocolatey:
choco install denoWith Yay (AUR) (deno and deno-bin):
# From source
yay -S deno
# Pre-compiled
yay -S deno-binInstall and Manage Multiple Versions
asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git
asdf install deno 1.0.0
# Activate globally with:
asdf global deno 1.0.0
# Activate locally in the current folder with:
asdf local deno 1.0.0With Scoop:
# Install a specific version of deno:
scoop install [email protected]
# Switch to v1.0.0
scoop reset [email protected]
# Switch to the latest version
scoop reset denoEnvironment Variables
-
DENO_INSTALL- The directory in which to install Deno. This defaults to$HOME/.deno. The executable is placed in$DENO_INSTALL/bin. One application of this is a system-wide installation:With Shell (
/usr/local):curl -fsSL https://deno.land/x/install/install.sh | sudo DENO_INSTALL=/usr/local shWith PowerShell (
C:\Program Files\deno):# Run as administrator: $env:DENO_INSTALL = "C:\Program Files\deno" iwr https://deno.land/x/install/install.ps1 -useb | iex
Compatibility
- The Shell installer can be used on Windows via the Windows Subsystem for Linux.
Known Issues
unzip is required
The program unzip is a requirement for the Shell installer.
$ curl -fsSL https://deno.land/x/install/install.sh | sh
Error: unzip is required to install Deno (see: https://github.com/denoland/deno_install#unzip-is-required).When does this issue occur?
During the install.sh process, unzip is used to extract the zip archive.
How can this issue be fixed?
You can install unzip via brew install unzip on MacOS or apt-get install unzip -y on Linux.