Skip to content

Commit 0a8e583

Browse files
fibibotbartlomieju
andauthored
docs: troubleshoot "command not found" after install (#3114)
Co-authored-by: fibibot <fibibot@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
1 parent 67089e4 commit 0a8e583

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

runtime/getting_started/installation.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
last_modified: 2026-03-05
2+
last_modified: 2026-05-14
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:
@@ -214,6 +214,22 @@ Use `deno help` to see help text documenting Deno's flags and usage. Get a
214214
detailed guide on the CLI
215215
[here](/runtime/getting_started/command_line_interface/).
216216

217+
### If you see "command not found"
218+
219+
If `deno --version` reports `command not found`, the install directory isn't on
220+
your `PATH` yet. To fix this:
221+
222+
- Open a new terminal window or restart your shell so the updated `PATH` is
223+
picked up. This is the most common cause — the install script updates your
224+
shell rc file, but existing shell sessions don't see the change until they
225+
reload.
226+
- Confirm the install directory is on your `PATH`. The shell install script
227+
defaults to `~/.deno/bin` on macOS and Linux; for npm-based installs, run
228+
`npm config get prefix` to find the directory containing the global `bin`.
229+
- If you customised the install location, the shell install script's install
230+
root can be overridden with the `DENO_INSTALL` environment variable, in which
231+
case the binary lives at `$DENO_INSTALL/bin/deno`.
232+
217233
## Updating
218234

219235
To update a previously installed version of Deno, you can run:

0 commit comments

Comments
 (0)