Skip to content

Commit

Permalink
remove winget, add tabs to install page (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhinnery authored Sep 18, 2023
1 parent e150825 commit a5342ac
Showing 1 changed file with 56 additions and 18 deletions.
74 changes: 56 additions & 18 deletions runtime/manual/getting_started/installation.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,99 @@
# Installation

Deno works on macOS, Linux, and Windows. Deno is a single binary executable. It
has no external dependencies.

On macOS, both M1 (arm64) and Intel (x64) executables are provided. On Linux and
Windows, only x64 is supported.
has no external dependencies. On macOS, both M1 (arm64) and Intel (x64)
executables are provided. On Linux and Windows, only x64 is supported.

## Download and install

[deno_install](https://github.com/denoland/deno_install) provides convenience
scripts to download and install the binary.

Using Shell (macOS and Linux):
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

<Tabs groupId="operating-systems">
<TabItem value="mac" label="macOS" default>

Using Shell:

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

Using PowerShell (Windows):
Using [Homebrew](https://formulae.brew.sh/formula/deno):

```shell
irm https://deno.land/install.ps1 | iex
brew install deno
```

Using [Winget](https://github.com/microsoft/winget-cli) (Windows):
Using [MacPorts](https://ports.macports.org/port/deno/):

```shell
winget install deno
sudo port install deno
```

Using [Scoop](https://scoop.sh/) (Windows):
Using [Nix](https://nixos.org/download.html):

```shell
nix-shell -p deno
```

Using [asdf](https://asdf-vm.com/):

```shell
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
```

</TabItem>
<TabItem value="windows" label="Windows">

Using PowerShell (Windows):

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

Using [Scoop](https://scoop.sh/):

```shell
scoop install deno
```

Using [Chocolatey](https://chocolatey.org/packages/deno) (Windows):
Using [Chocolatey](https://chocolatey.org/packages/deno):

```shell
choco install deno
```

Using [Homebrew](https://formulae.brew.sh/formula/deno) (macOS):
Using [Winget](https://github.com/microsoft/winget-cli):

```shell
brew install deno
winget install deno
```

Using [MacPorts](https://ports.macports.org/port/deno/) (macOS):
</TabItem>
<TabItem value="linux" label="Linux">

Using Shell:

```shell
sudo port install deno
curl -fsSL https://deno.land/x/install/install.sh | sh
```

Using [Nix](https://nixos.org/download.html) (macOS and Linux):
Using [Nix](https://nixos.org/download.html):

```shell
nix-shell -p deno
```

Using [asdf](https://asdf-vm.com/) (macOS and Linux):
Using [asdf](https://asdf-vm.com/):

```shell
asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git
Expand All @@ -72,7 +106,11 @@ asdf global deno latest
asdf local deno latest
```

Build and install from source using [Cargo](https://crates.io/crates/deno):
</TabItem>
</Tabs>

You can also build and install from source using
[Cargo](https://crates.io/crates/deno):

```shell
cargo install deno --locked
Expand Down

0 comments on commit a5342ac

Please sign in to comment.