Skip to main content

Installation

Install the Deno runtime on your system using one of the commands below. Deno ships as a single executable with no dependencies, making installation quick and easy.

Quick Install

Use the installation script with curl:
curl -fsSL https://deno.land/install.sh | sh
Or install via Homebrew:
brew install deno

Installation Methods

Choose the installation method that works best for your platform and preferences.

Shell Script (Mac, Linux)

The shell script installer is the recommended method for macOS and Linux:
curl -fsSL https://deno.land/install.sh | sh
This will download and install Deno to ~/.deno/bin/deno. You may need to add this to your PATH:
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
Add these lines to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make them permanent.

PowerShell (Windows)

For Windows users, the PowerShell installer is the recommended approach:
irm https://deno.land/install.ps1 | iex
The installer will add Deno to your PATH automatically.

Homebrew (macOS)

If you have Homebrew installed:
brew install deno
Homebrew will automatically manage updates via brew upgrade deno.

Package Managers (Windows)

Windows users have several package manager options:
choco install deno

Verify Installation

After installation, verify that Deno is installed correctly:
deno --version
You should see output similar to:
deno 1.x.x (release, x86_64-apple-darwin)
v8 11.x.x
typescript 5.x.x

Build from Source

For developers who want to build Deno from source, complete instructions are available in the Contributing Guide.
1

Clone the Repository

git clone https://github.com/denoland/deno.git
cd deno
2

Install Prerequisites

You’ll need Rust, Python 3, and other build tools. See the contributing guide for detailed requirements.
3

Build Deno

cargo build --release
The compiled binary will be at ./target/release/deno.

Updating Deno

Deno includes a built-in upgrade command:
deno upgrade
This will download and install the latest version of Deno. To upgrade to a specific version:
deno upgrade --version 1.40.0
To upgrade to a canary (pre-release) version:
deno upgrade --canary

Uninstalling Deno

To uninstall Deno, simply remove the executable and configuration directory:
rm -rf ~/.deno
Then remove the PATH exports from your shell profile.
If you installed via a package manager, use the package manager’s uninstall command:
# Homebrew
brew uninstall deno

# Chocolatey
choco uninstall deno

# WinGet
winget uninstall DenoLand.Deno

# Scoop
scoop uninstall deno

Environment Setup

For the best development experience, consider setting these environment variables:
# Set the Deno installation directory (if using shell installer)
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"

# Configure Deno cache location (optional)
export DENO_DIR="$HOME/.cache/deno"

Editor Setup

For the best development experience, install the Deno extension for your editor:

Next Steps

Now that you have Deno installed, let’s build your first program:

Quickstart Tutorial

Build and run your first Deno program in minutes

Build docs developers (and LLMs) love