From b3f4d96b24cfcc031aa947f2f9665ecff5290fc5 Mon Sep 17 00:00:00 2001 From: fibibot Date: Wed, 13 May 2026 23:46:51 +0000 Subject: [PATCH 1/2] docs: troubleshoot "command not found" after install Adds a short H3 under "Testing your installation" covering the most common cause when `deno --version` fails post-install: PATH not yet picked up. Mentions restarting the shell, the default install dir (`~/.deno/bin`), and the `DENO_INSTALL` override. Closes #3045 --- runtime/getting_started/installation.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index 4cc474fdb..6dc9bbd99 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -214,6 +214,22 @@ Use `deno help` to see help text documenting Deno's flags and usage. Get a detailed guide on the CLI [here](/runtime/getting_started/command_line_interface/). +### If you see "command not found" + +If `deno --version` reports `command not found`, the install directory isn't on +your `PATH` yet. To fix this: + +- Open a new terminal window or restart your shell so the updated `PATH` is + picked up. This is the most common cause — the install script updates your + shell rc file, but existing shell sessions don't see the change until they + reload. +- Confirm the install directory is on your `PATH`. The shell install script + defaults to `~/.deno/bin` on macOS and Linux; for npm-based installs, run + `npm config get prefix` to find the directory containing the global `bin`. +- If you customised the install location, the shell install script's install + root can be overridden with the `DENO_INSTALL` environment variable, in which + case the binary lives at `$DENO_INSTALL/bin/deno`. + ## Updating To update a previously installed version of Deno, you can run: From f23808a1a1d34f317165fa304aa4e07a97f6fa96 Mon Sep 17 00:00:00 2001 From: fibibot Date: Thu, 14 May 2026 03:57:24 +0000 Subject: [PATCH 2/2] docs: bump last_modified for installation page --- runtime/getting_started/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/getting_started/installation.md b/runtime/getting_started/installation.md index 6dc9bbd99..af22f293d 100644 --- a/runtime/getting_started/installation.md +++ b/runtime/getting_started/installation.md @@ -1,5 +1,5 @@ --- -last_modified: 2026-03-05 +last_modified: 2026-05-14 title: Installation 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." oldUrl: