One-line commands to install Deno on your system.
With Shell:
curl -fsSL https://deno.land/install.sh | shWith PowerShell:
irm https://deno.land/install.ps1 | iexWith Shell:
curl -fsSL https://deno.land/install.sh | sh -s v1.0.0With PowerShell:
$v="1.0.0"; irm https://deno.land/install.ps1 | iexWith winget:
winget install denoWith Scoop:
scoop install denoWith Homebrew:
brew install denoWith Macports:
sudo port install denoWith Chocolatey:
choco install denoWith Snap:
sudo snap install denoWith Pacman:
pacman -S denoWith Zypper:
zypper install denoBuild and install from source using Cargo:
# Install the Protobuf compiler
apt install -y protobuf-compiler # Linux
brew install protobuf # macOS
# Build and install Deno
cargo install denoWith PowerShell:
$denoGlobalInstall; irm https://deno.land/install.ps1 | iexasdf plugin add deno
# Get latest version of deno available
DENO_LATEST=$(asdf latest deno)
asdf install deno $DENO_LATEST
# Activate globally with:
asdf global deno $DENO_LATEST
# Activate locally in the current folder with:
asdf local deno $DENO_LATEST
#======================================================
# If you want to install specific version of deno then use that version instead
# of DENO_LATEST variable example
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 deno-
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/install.sh | sudo DENO_INSTALL=/usr/local shWith PowerShell (
C:\Program Files\deno):# Run as administrator: $env:DENO_INSTALL = "C:\Program Files\deno" irm https://deno.land/install.ps1 | iex
- The Shell installer can be used on Windows with Windows Subsystem for Linux, MSYS or equivalent set of tools.
To decompress the deno archive, one of either unzip or 7z must be available on the target system.
$ curl -fsSL https://deno.land/install.sh | sh
Error: either unzip or 7z is required to install Deno (see: https://github.com/denoland/deno_install#either-unzip-or-7z-is-required ).When does this issue occur?
During the install.sh process, unzip or 7z 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.