@@ -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
1917scripts 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
2422Using Shell:
2523
@@ -33,52 +31,43 @@ Using [npm](https://npmjs.com/package/deno):
3331npm 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):
10089npm 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-
10792Using [ Scoop] ( https://scoop.sh/ ) :
10893
10994``` shell
@@ -122,41 +107,16 @@ Using [Winget](https://github.com/microsoft/winget-cli):
122107winget 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
161121Using [ asdf] ( https://asdf-vm.com/ ) :
162122
@@ -185,9 +145,6 @@ vfox install deno@latest
185145vfox use --global deno
186146```
187147
188- </deno-tab >
189- </deno-tabs >
190-
191148You 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:
273230deno 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+
276251Or 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.
286261You 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:
307282rm -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 " >
0 commit comments