A Guide to Deno Core
  • A Guide to Deno Core
  • Installing Deno
  • Contribution Guide
  • Codebase Basics
    • Infrastructure
    • More Components
    • Repo Structure
    • Example: Adding to Deno API
  • Advanced
    • Under the call site's hood
    • Process Lifecycle
    • Interaction with V8
    • DENO_DIR, Code Fetch and Cache
Powered by GitBook
On this page
  • Get Deno Release Binary
  • Compile Deno From Source

Was this helpful?

Installing Deno

PreviousA Guide to Deno CoreNextContribution Guide

Last updated 6 years ago

Was this helpful?

Get Deno Release Binary

Deno is still at very early development stage. The current releases are 0.2.x, which are defined to be "mildly usable" and is mostly for developer preview.

To install Deno release binary, run the following commands on *nix

curl -L https://deno.land/x/install/install.py | python
export PATH=$HOME/.deno/bin:$PATH

On windows, you might want to install through Powershell:

iex (iwr https://deno.land/x/install/install.ps1)

Deno is installed through scripts from . If you encountered any installation problems, submit an issue there.

Compile Deno From Source

If you are interested in contributing to Deno, you might want to compile Deno from source yourself.

Run the following commands to get make a debug build

# Fetch deps.
git clone --recurse-submodules https://github.com/denoland/deno.git
cd deno
# Setup and download important third party tools
./tools/setup.py
# Build.
./tools/build.py

Notice that in some countries, domains, such as google.com, are blocked from access. You might want to use a VPN or alternative tools when running ./tools/setup.py.

Deno is built with GN and Ninja, tools that are used also by the Chromium team. The built files will be located at target/debug/

Alternatively, to create a release build for evaluation, set DENO_BUILD_MODE to release on build:

DENO_BUILD_MODE=release ./tools/build.py

The built files will be located at target/release/

Deno also comes with Cargo build support:

cargo build
deno_install