Skip to content

Commit 247a3f9

Browse files
bartlomiejuclaude
andcommitted
docs: document default installation paths
Adds a section explaining where Deno is installed by default on each platform, how to customize the install directory, and where the cache is stored. Closes #2799 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b817055 commit 247a3f9

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

runtime/getting_started/installation.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
last_modified: 2026-05-14
2+
last_modified: 2026-05-21
33
title: Installation
44
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."
55
oldUrl:
@@ -207,6 +207,39 @@ executable bit on macOS and Linux.
207207
For more information and instructions on the official Docker images:
208208
[https://github.com/denoland/deno_docker](https://github.com/denoland/deno_docker)
209209

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+
210243
## Testing your installation
211244

212245
To test your installation, run `deno --version`. If this prints the Deno version

0 commit comments

Comments
 (0)