|
1 | 1 | --- |
2 | | -last_modified: 2026-05-14 |
| 2 | +last_modified: 2026-05-21 |
3 | 3 | title: Installation |
4 | 4 | description: "A Guide to installing Deno on different operating systems. Includes instructions for Windows, macOS, and Linux using various package managers, manual installation methods, and Docker containers." |
5 | 5 | oldUrl: |
@@ -207,6 +207,39 @@ executable bit on macOS and Linux. |
207 | 207 | For more information and instructions on the official Docker images: |
208 | 208 | [https://github.com/denoland/deno_docker](https://github.com/denoland/deno_docker) |
209 | 209 |
|
| 210 | +## Installation location |
| 211 | + |
| 212 | +### Binary location |
| 213 | + |
| 214 | +When installed via the shell or PowerShell script, the `deno` binary is placed |
| 215 | +in the following default location: |
| 216 | + |
| 217 | +| Platform | Default path | |
| 218 | +| ------------- | ---------------------------------- | |
| 219 | +| macOS / Linux | `$HOME/.deno/bin/deno` | |
| 220 | +| Windows | `%USERPROFILE%\.deno\bin\deno.exe` | |
| 221 | + |
| 222 | +Override the install directory by setting the `DENO_INSTALL` environment |
| 223 | +variable before running the install script. |
| 224 | + |
| 225 | +When installed via a package manager (Homebrew, Scoop, etc.), the binary |
| 226 | +location is managed by that package manager. |
| 227 | + |
| 228 | +### Cache location |
| 229 | + |
| 230 | +Downloaded dependencies and compiled artefacts are stored in Deno's cache |
| 231 | +directory. It defaults to a platform-specific path: |
| 232 | + |
| 233 | +| Platform | Default path | |
| 234 | +| -------- | --------------------------- | |
| 235 | +| Linux | `$HOME/.cache/deno` | |
| 236 | +| macOS | `$HOME/Library/Caches/deno` | |
| 237 | +| Windows | `%LOCALAPPDATA%\deno` | |
| 238 | + |
| 239 | +Override it by setting the `DENO_DIR` environment variable (see |
| 240 | +[Environment variables](/runtime/reference/env_variables/)). Run `deno info` to |
| 241 | +print the directory currently in use. |
| 242 | + |
210 | 243 | ## Testing your installation |
211 | 244 |
|
212 | 245 | To test your installation, run `deno --version`. If this prints the Deno version |
|
0 commit comments