MyGit

denoland/deno_install

Fork: 180 Star: 969 (更新于 2024-10-23 15:56:26)

license: MIT

Language: JavaScript .

Deno Binary Installer

最后发布版本: v0.1.9 ( 2024-02-09 17:46:21)

官方网址 GitHub网址

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 winget:

winget install deno

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:

# Install the Protobuf compiler
apt install -y protobuf-compiler # Linux
brew install protobuf # macOS

# Build and install Deno
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 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/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
    

Verification

As an additional layer of security, you can verify the integrity of the shell installer against the provided checksums.

curl -fLso install.sh https://deno.land/install.sh

Verify the SHA256 checksum of the installer:

shasum -a 256 -c --ignore-missing <(curl -s https://raw.githubusercontent.com/denoland/deno_install/main/SHA256SUM)

Compatibility

Known Issues

either unzip or 7z is required

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.

最近版本更新:(数据更新于 2024-08-27 23:45:25)

2024-02-09 17:46:21 v0.1.9

2023-03-07 09:39:09 v0.1.8

2022-06-23 22:32:00 v0.1.5

2020-12-08 23:59:48 v0.1.4

2020-12-08 22:16:56 v0.1.3

2020-09-03 05:38:31 v0.1.2

denoland/deno_install同语言 JavaScript最近更新仓库

2024-11-05 19:13:47 jerryc127/hexo-theme-butterfly

2024-11-05 13:53:42 LiteLoaderQQNT/LiteLoaderQQNT

2024-11-03 02:40:36 chris81605/Degrees-of-Lewdity_Cheat_Extended

2024-11-01 21:55:46 projectdiscovery/nuclei-templates

2024-11-01 19:24:44 NumberSir/DoL-I18n-Build

2024-11-01 12:25:14 midoks/mdserver-web