Skip to content

niyarlatotep/deno_install

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno_install

One-line commands to install Deno on your system.

Build Status

Install Latest Version

With Shell:

curl -fsSL https://deno.land/x/install/install.sh | sh

With PowerShell:

iwr https://deno.land/x/install/install.ps1 -useb | iex

Install Specific Version

With Shell:

curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.0.0

With PowerShell:

$v="1.0.0"; iwr https://deno.land/x/install/install.ps1 -useb | iex

Install via Package Manager

With Scoop:

scoop install deno

With Homebrew:

brew install deno

With Chocolatey:

choco install deno

With Yay (AUR) (deno and deno-bin):

# From source
yay -S deno
# Pre-compiled
yay -S deno-bin

Install and Manage Multiple Versions

With asdf and asdf-deno:

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.0

With Scoop:

# Install a specific version of deno:
scoop install deno@1.0.0

# Switch to v1.0.0
scoop reset deno@1.0.0

# Switch to the latest version
scoop reset deno

Environment 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 sh

    With 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

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.

About

Deno Binary Installer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 56.6%
  • Shell 43.4%