Skip to content

Commit 6a137ab

Browse files
committed
Merge remote-tracking branch 'origin/main' into worktree-agent-ae03f22321b77ddba
2 parents d2c2842 + d63fea5 commit 6a137ab

3 files changed

Lines changed: 86 additions & 101 deletions

File tree

js/tabs.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ for (const tabGroup of document.querySelectorAll<HTMLElement>(".deno-tabs")) {
7979
const storedTabId = localStorage.getItem(`deno-tab-${groupId}`);
8080
if (storedTabId) {
8181
document.dispatchEvent(new GroupSelectEvent(groupId, storedTabId));
82+
} else if (groupId === "operating-systems") {
83+
const ua = navigator.userAgent;
84+
let detected: string | null = null;
85+
if (/Mac/i.test(ua)) detected = "mac";
86+
else if (/Win/i.test(ua)) detected = "windows";
87+
else if (/Linux/i.test(ua)) detected = "linux";
88+
if (detected) {
89+
document.dispatchEvent(new GroupSelectEvent(groupId, detected));
90+
}
8291
}
8392

8493
const anyTabActive = Array.from(tabs).some((tab) =>

runtime/getting_started/installation.md

Lines changed: 48 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ oldUrl:
88
- /runtime/fundamentals/installation
99
---
1010

11-
Deno works on macOS, Linux, and Windows. Deno is a single binary executable. It
12-
has no external dependencies. On macOS, both M1 (arm64) and Intel (x64)
13-
executables are provided. On Windows, both ARM64 and x64 are supported. On
14-
Linux, only x64 is supported.
11+
Deno is a single binary executable with no external dependencies. It runs on
12+
macOS, Linux, and Windows, on both x64 and arm64 architectures.
1513

1614
## Download and install
1715

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

2119
<deno-tabs group-id="operating-systems">
22-
<deno-tab value="mac" label="macOS" default>
20+
<deno-tab value="linux" label="Linux">
2321

2422
Using Shell:
2523

@@ -33,52 +31,43 @@ Using [npm](https://npmjs.com/package/deno):
3331
npm install -g deno
3432
```
3533

36-
> <small>The startup time of the Deno command gets affected if it's installed
37-
> via npm. We recommend the shell install script for better performance.</small>
38-
39-
Using [Homebrew](https://formulae.brew.sh/formula/deno):
34+
Using [Nix](https://nixos.org/download.html):
4035

4136
```shell
42-
brew install deno
37+
nix-shell -p deno
4338
```
4439

45-
Using [MacPorts](https://ports.macports.org/port/deno/):
40+
</deno-tab>
41+
<deno-tab value="mac" label="macOS" default>
42+
43+
Using Shell:
4644

4745
```shell
48-
sudo port install deno
46+
curl -fsSL https://deno.land/install.sh | sh
4947
```
5048

51-
Using [Nix](https://nixos.org/download.html):
49+
Using [npm](https://npmjs.com/package/deno):
5250

5351
```shell
54-
nix-shell -p deno
52+
npm install -g deno
5553
```
5654

57-
Using [asdf](https://asdf-vm.com/):
55+
Using [Homebrew](https://formulae.brew.sh/formula/deno):
5856

5957
```shell
60-
asdf plugin add deno https://github.com/asdf-community/asdf-deno.git
61-
62-
# Download and install the latest version of Deno
63-
asdf install deno latest
64-
65-
# To set as the default version of Deno globally
66-
asdf set -u deno latest
67-
68-
# To set as the default version of Deno locally (current project only)
69-
asdf set deno latest
58+
brew install deno
7059
```
7160

72-
Using [vfox](https://vfox.dev/):
61+
Using [MacPorts](https://ports.macports.org/port/deno/):
7362

7463
```shell
75-
vfox add deno
64+
sudo port install deno
65+
```
7666

77-
# Download and install the latest version of Deno
78-
vfox install deno@latest
67+
Using [Nix](https://nixos.org/download.html):
7968

80-
# To set the version of Deno globally
81-
vfox use --global deno
69+
```shell
70+
nix-shell -p deno
8271
```
8372

8473
</deno-tab>
@@ -100,10 +89,6 @@ Using [npm](https://npmjs.com/package/deno):
10089
npm install -g deno
10190
```
10291

103-
> <small>The startup time of the Deno command gets affected if it's installed
104-
> via npm. We recommend the PowerShell install script for better
105-
> performance.</small>
106-
10792
Using [Scoop](https://scoop.sh/):
10893

10994
```shell
@@ -122,41 +107,16 @@ Using [Winget](https://github.com/microsoft/winget-cli):
122107
winget install DenoLand.Deno
123108
```
124109

125-
Using [vfox](https://vfox.dev/):
126-
127-
```shell
128-
vfox add deno
129-
130-
# Download and install the latest version of Deno
131-
vfox install deno@latest
132-
133-
# To set the version of Deno globally
134-
vfox use --global deno
135-
```
136-
137110
</deno-tab>
138-
<deno-tab value="linux" label="Linux">
139-
140-
Using Shell:
141-
142-
```shell
143-
curl -fsSL https://deno.land/install.sh | sh
144-
```
145-
146-
Using [npm](https://npmjs.com/package/deno):
147-
148-
```shell
149-
npm install -g deno
150-
```
111+
</deno-tabs>
151112

152113
> <small>The startup time of the Deno command gets affected if it's installed
153-
> via npm. We recommend the shell install script for better performance.</small>
114+
> via npm. We recommend the official install script (shell or PowerShell) for
115+
> better performance.</small>
154116
155-
Using [Nix](https://nixos.org/download.html):
117+
### Cross-platform package managers
156118

157-
```shell
158-
nix-shell -p deno
159-
```
119+
These version managers work on macOS, Linux, and Windows.
160120

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

@@ -185,9 +145,6 @@ vfox install deno@latest
185145
vfox use --global deno
186146
```
187147

188-
</deno-tab>
189-
</deno-tabs>
190-
191148
You can also build and install from source using
192149
[Cargo](https://crates.io/crates/deno):
193150

@@ -273,6 +230,24 @@ To update a previously installed version of Deno, you can run:
273230
deno upgrade
274231
```
275232

233+
Or using [Homebrew](https://formulae.brew.sh/formula/deno) (macOS):
234+
235+
```shell
236+
brew upgrade deno
237+
```
238+
239+
Or using [Scoop](https://scoop.sh/) (Windows):
240+
241+
```shell
242+
scoop update deno
243+
```
244+
245+
Or using [Chocolatey](https://chocolatey.org/packages/deno) (Windows):
246+
247+
```shell
248+
choco upgrade deno
249+
```
250+
276251
Or using [Winget](https://github.com/microsoft/winget-cli) (Windows):
277252

278253
```shell
@@ -286,7 +261,7 @@ unzip it, and replace your current executable with it.
286261
You can also use this utility to install a specific version of Deno:
287262

288263
```shell
289-
deno upgrade --version 1.0.1
264+
deno upgrade --version 2.7.0
290265
```
291266

292267
## Uninstalling
@@ -307,8 +282,10 @@ Then remove the Deno installation directory:
307282
rm -rf ~/.deno
308283
```
309284

310-
Finally, remove the `DENO_INSTALL` export and `PATH` entry from your shell
311-
config file (`~/.bashrc`, `~/.zshrc`, `~/.config/fish/config.fish`, etc.).
285+
Finally, remove the line that sources Deno's env file from your shell config
286+
(`~/.bashrc`, `~/.zshrc`, `~/.profile`, etc.). The shell install script appends
287+
a line like `. "$HOME/.deno/env"` — delete that line. Fish users should
288+
additionally remove `~/.config/fish/conf.d/deno.fish`.
312289

313290
</deno-tab>
314291
<deno-tab value="windows" label="Windows">

runtime/index.md

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
last_modified: 2025-10-10
2+
last_modified: 2026-05-28
33
title: "Welcome to Deno"
44
description: "Learn the basics of Deno, a secure JavaScript, TypeScript, and WebAssembly runtime."
55
pagination_next: /runtime/getting_started/first_project/
@@ -17,51 +17,49 @@ oldUrl:
1717
`dee-no`) is an
1818
[open source](https://github.com/denoland/deno/blob/main/LICENSE.md) JavaScript,
1919
TypeScript, and WebAssembly runtime with secure defaults and a great developer
20-
experience. It's built on [V8](https://v8.dev/),
21-
[Rust](https://www.rust-lang.org/), and [Tokio](https://tokio.rs/).
20+
experience.
2221

2322
## Why Deno?
2423

25-
- Deno is
26-
**[TypeScript-ready out of the box](/runtime/fundamentals/typescript/).** Zero
27-
config or additional steps necessary.
28-
- Deno is **[secure by default](/runtime/fundamentals/security/).** Where other
29-
runtimes give full access every script they run, Deno allows you to enforce
30-
granular permissions.
31-
- Deno has a **robust built-in toolchain.** Unlike Node or browser JavaScript,
32-
Deno includes a [standard library](/runtime/reference/std/), along with a
33-
first-party [linter/formatter](/runtime/fundamentals/linting_and_formatting/),
34-
[test runner](/runtime/fundamentals/testing/), and more.
35-
- Deno is **fully compatible with [Node and npm](/runtime/fundamentals/node/).**
36-
- Deno is **fast and reliable**.
37-
- **[Deno is open-source](https://github.com/denoland/deno).**
24+
- **Works with your existing [Node.js projects](/runtime/fundamentals/node/).**
25+
Drop Deno into a repo with `package.json` and `node_modules` and it just runs;
26+
mix `npm:` imports with native ES modules as you migrate.
27+
- **Modern module system.** ES modules with URL imports, [JSR](https://jsr.io)
28+
for typed packages, and [workspaces](/runtime/fundamentals/workspaces/).
29+
- **[TypeScript-first](/runtime/fundamentals/typescript/).** Run `.ts` files
30+
directly. No `tsc`, no build step, no config.
31+
- **[Secure by default](/runtime/fundamentals/security/).** Code runs in a
32+
sandbox with no file, network, or environment access until you grant it.
33+
- **A full toolchain, no plumbing.** Built-in
34+
[formatter](/runtime/fundamentals/linting_and_formatting/),
35+
[linter](/runtime/fundamentals/linting_and_formatting/),
36+
[test runner](/runtime/fundamentals/testing/), benchmarking, and
37+
[a lot more](/runtime/reference/cli/). No `devDependencies` to wire up.
3838

3939
## Quick install
4040

4141
Install the Deno runtime on your system using one of the terminal commands
4242
below:
4343

4444
<deno-tabs group-id="operating-systems">
45-
<deno-tab value="mac" label="macOS" default>
45+
<deno-tab value="linux" label="Linux">
4646

4747
```sh
4848
curl -fsSL https://deno.land/install.sh | sh
4949
```
5050

5151
</deno-tab>
52-
<deno-tab value="windows" label="Windows">
53-
54-
In Windows PowerShell:
52+
<deno-tab value="mac" label="macOS" default>
5553

56-
```powershell
57-
irm https://deno.land/install.ps1 | iex
54+
```sh
55+
curl -fsSL https://deno.land/install.sh | sh
5856
```
5957

6058
</deno-tab>
61-
<deno-tab value="linux" label="Linux">
59+
<deno-tab value="windows" label="Windows">
6260

63-
```sh
64-
curl -fsSL https://deno.land/install.sh | sh
61+
```shell title="pwsh"
62+
irm https://deno.land/install.ps1 | iex
6563
```
6664

6765
</deno-tab>
@@ -75,12 +73,13 @@ system path. You can verify the installation by running:
7573
deno --version
7674
```
7775

78-
## First steps
76+
## Next steps
7977

80-
Deno can run JavaScript and [TypeScript](https://www.typescriptlang.org/) with
81-
no additional tools or configuration required, all in a secure,
82-
batteries-included runtime.
78+
With Deno installed, dive into the rest of the Getting Started guide:
8379

8480
- [Making a Deno project](/runtime/getting_started/first_project/)
8581
- [Setting up your environment](/runtime/getting_started/setup_your_environment/)
86-
- [Using the CLI](/runtime/getting_started/command_line_interface)
82+
- [Using the CLI](/runtime/getting_started/command_line_interface/)
83+
84+
For more installation options (package managers, Docker, building from source),
85+
see the full [installation guide](/runtime/getting_started/installation/).

0 commit comments

Comments
 (0)