All Projects → denocn → deno_install

denocn / deno_install

Licence: other
Deno 安装器(国内加速)

Projects that are alternatives of or similar to deno install

deno deploy versailles
凡尔赛语录(部署在 Deno Deploy)
Stars: ✭ 18 (-68.97%)
Mutual labels:  deno, deno-module
vscode-deno-extensionpack
Deno VS Code Extension Pack
Stars: ✭ 12 (-79.31%)
Mutual labels:  deno, deno-tools
carol
A Deno port of carlo
Stars: ✭ 63 (+8.62%)
Mutual labels:  deno, deno-module
typeorm
Forked from https://github.com/typeorm/typeorm
Stars: ✭ 107 (+84.48%)
Mutual labels:  deno, deno-module
Fae
A functional module for Deno inspired from Ramda.
Stars: ✭ 44 (-24.14%)
Mutual labels:  deno, deno-module
deno serverless aliyun
为阿里云 serverless 平台添加 Deno Runtime
Stars: ✭ 60 (+3.45%)
Mutual labels:  deno, deno-module
deno cheerio
How to use cheerio in Deno
Stars: ✭ 23 (-60.34%)
Mutual labels:  deno, deno-modules
dataStructure
Implement different Data Structures using TypeScript and JavaScript. Deno Third-party Module.
Stars: ✭ 24 (-58.62%)
Mutual labels:  deno, deno-module
johanbrook.com
Naming the repo "johanbrook.com" was a mistake.
Stars: ✭ 17 (-70.69%)
Mutual labels:  deno
hex
An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Stars: ✭ 48 (-17.24%)
Mutual labels:  deno
microdiff
A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.
Stars: ✭ 3,138 (+5310.34%)
Mutual labels:  deno
maze generator
A work-in-progress Javascript maze generator module, compatible with both Deno and Node. 🌽
Stars: ✭ 35 (-39.66%)
Mutual labels:  deno
dem
A module version manager for Deno.
Stars: ✭ 58 (+0%)
Mutual labels:  deno
angular deno
Angular Deno - Experimental Angular renderer in server with Deno
Stars: ✭ 78 (+34.48%)
Mutual labels:  deno
deno-drash-realworld-example-app
Deno + Drash RealWorld example app
Stars: ✭ 56 (-3.45%)
Mutual labels:  deno
nanoid
A NanoID implementation for Deno
Stars: ✭ 63 (+8.62%)
Mutual labels:  deno
snatchblock
A strictly typed utility library.
Stars: ✭ 1,059 (+1725.86%)
Mutual labels:  deno
i18next-http-backend
i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.
Stars: ✭ 270 (+365.52%)
Mutual labels:  deno
logrocket deno api
A functional CRUD-like API with Deno and Postgres
Stars: ✭ 23 (-60.34%)
Mutual labels:  deno
bundle
An online tool to quickly bundle & minify your projects, while viewing the compressed gzip/brotli bundle size, all running locally on your browser.
Stars: ✭ 475 (+718.97%)
Mutual labels:  deno

deno_install

通过单行命令将 Deno 安装到系统中(国内加速)

本项目为公益项目,如果这个下载镜像帮助到了你,可以通过下面二维码进行捐赠:

安装最新版

使用 Shell:

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

使用 PowerShell:

irm https://x.deno.js.cn/install.ps1 | iex

安装某个特定版本

使用 Shell:

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

使用 PowerShell:

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

使用包管理器

使用 Scoop:

scoop install deno

使用 Homebrew:

brew install deno

使用 Chocolatey:

choco install deno

使用多版本管理工具

使用 dvm - Deno Version Manager:

# 安装某个特定版本的 Deno:
dvm install 1.0.0

# 安装最新版
dvm install

使用 Yay (AUR) (denodeno-bin):

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

使用 asdfasdf-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

使用 Scoop:

# 安装某个特定版本的 Deno:
scoop install [email protected]

# 切换到 v1.0.0
scoop reset [email protected]

#切换到最新版
scoop reset deno

环境变量

  • DENO_INSTALL - Deno 的安装目录。默认为 $HOME/.deno。Deno 可执行文件将安装在 $DENO_INSTALL/bin 目录。 安装成功后将对所有用户有效:

    使用 Shell (/usr/local):

    curl -fsSL https://x.deno.js.cn/install.sh | sudo DENO_INSTALL=/usr/local sh

    使用 PowerShell (C:\Program Files\deno):

    # 使用管理员模式运行:
    $env:DENO_INSTALL = "C:\Program Files\deno"
    irm https://x.deno.js.cn/install.ps1 | iex

兼容性

已知问题

禁止运行脚本

PS C:\> irm https://x.deno.js.cn/install.ps1 -outf install.ps1; .\install.ps1 v0.41.0
.\install.ps1 : 无法加载文件 C:\Users\justjavac\install.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 63
+ ... deno.js.cn/install.ps1 -useb -outf install.ps1; .\install.ps1 v0.41.0
+                                                     ~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [],PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

什么情况下会出现这个错误?

当您的系统的 ExecutionPolicyUndefinedRestricted 时。

如何修复这个错误?

允许系统运行从网络上下载的脚本文件,将执行策略设置为 RemoteSigned

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

unzip is required

Shell 安装脚本需要 unzip 软件。

什么情况下会出现这个错误?

$ curl -fsSL https://deno.land/x/install/install.sh | sh
Error: unzip is required to install Deno (see: https://deno.js.cn/t/topic/167).

当运行 install.sh 时,unzip 用来解压 Deno 的二进制 zip 包。

如何修复这个错误?

你可以通过在 macOS 上运行 brew install unzip 或者 Linux 上运行 apt-get install unzip -y 来安装 unzip 程序。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].