インストール
Deno は macOS、Linux、Windows で動作します。 Deno は単一のバイナリ実行可能ファイルです。 外部依存関係はありません。 macOS では、M1 (arm64) と Intel (x64) の両方の 実行可能ファイルが提供されます。 Linux および Windows では、x64 のみがサポートされます。
downloadとinstall
deno_install 利便性を提供する バイナリをダウンロードしてインストールするためのスクリプト。
- macOS
- Windows
- Linux
Using Shell:
curl -fsSL https://deno.land/x/install/install.sh | sh
Using Homebrew:
brew install deno
Using MacPorts:
sudo port install deno
Using Nix:
nix-shell -p deno
Using asdf:
asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git
asdf install deno latest
# To install globally
asdf global deno latest
# To install locally (current project only)
asdf local deno latest
Using PowerShell (Windows):
irm https://deno.land/install.ps1 | iex
Using Scoop:
scoop install deno
Using Chocolatey:
choco install deno
Using Winget:
winget install deno
Using Shell:
curl -fsSL https://deno.land/x/install/install.sh | sh
Using Nix:
nix-shell -p deno
Using asdf:
asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git
asdf install deno latest
# To install globally
asdf global deno latest
# To install locally (current project only)
asdf local deno latest
ソースからビルドしてインストールすることもできます Cargo:
cargo install deno --locked
Deno バイナリは、zip ファイルをダウンロードして手動でインストールすることもできます。 github.com/denoland/deno/releases. これらのパッケージには、実行可能ファイルが 1 つだけ含まれています。を設定する必要があります。 macOS および Linux 上の実行可能ビット。
Docker
公式 Docker イメージの詳細と手順については、こちらをご覧ください。: https://github.com/denoland/deno_docker
Testing your installation
To test your installation, run deno --version
. If this prints the Deno version
to the console the installation was successful.
Use deno help
to see help text documenting Deno's flags and usage. Get a
detailed guide on the CLI here.
Updating
To update a previously installed version of Deno, you can run:
deno upgrade
Or using Winget (Windows):
winget upgrade deno
This will fetch the latest release from github.com/denoland/deno/releases, unzip it, and replace your current executable with it.
You can also use this utility to install a specific version of Deno:
deno upgrade --version 1.0.1
Building from source
Information about how to build from source can be found in the
Contributing
chapter.