Code Monkey home page Code Monkey logo

deno_install's Introduction

deno_install

One-line commands to install Deno on your system.

Build Status

Install Latest Version

With Shell:

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

With PowerShell:

irm https://deno.land/install.ps1 | iex

Install Specific Version

With Shell:

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

With PowerShell:

$v="1.0.0"; irm https://deno.land/install.ps1 | iex

Install via Package Manager

With Scoop:

scoop install deno

With Homebrew:

brew install deno

With Macports:

sudo port install deno

With Chocolatey:

choco install deno

With Snap:

sudo snap install deno

With Pacman:

pacman -S deno

With Zypper:

zypper install deno

Build and install from source using Cargo:

cargo install deno

Install and Manage Multiple Versions

With asdf and asdf-deno:

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

With 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

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/install.sh | sudo DENO_INSTALL=/usr/local sh

    With PowerShell (C:\Program Files\deno):

    # Run as administrator:
    $env:DENO_INSTALL = "C:\Program Files\deno"
    irm https://deno.land/install.ps1 | iex

Compatibility

Known Issues

unzip is required

The program unzip is a requirement for the Shell installer.

$ curl -fsSL https://deno.land/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.

deno_install's People

Contributors

marktiedemann avatar ry avatar nayeemrmn avatar kt3k avatar qti3e avatar bartlomieju avatar piscisaureus avatar zhmushan avatar dbrn avatar hayd avatar anshulguleria avatar amnats avatar avindra avatar erazerbrecht avatar caspervonb avatar digitalcoyote avatar ultirequiem avatar noxifoxi avatar 738 avatar naueramant avatar jedahan avatar manuraj17 avatar maximousblk avatar elcheco avatar hardy613 avatar peaceiris avatar srijanreddy98 avatar yamboy1 avatar afinch7 avatar gamesquestionmark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.