docs: document DENO_INSTALL env var on installation page#3112
docs: document DENO_INSTALL env var on installation page#3112lunadogbot wants to merge 5 commits into
Conversation
Adds a "Customizing the install directory" sub-section to the installation page explaining how to override the install location used by the official shell and PowerShell install scripts via the `DENO_INSTALL` environment variable, with examples for macOS/Linux and Windows. Closes #3047
fibibot
left a comment
There was a problem hiding this comment.
Verified against the live install.sh (deno_install="${DENO_INSTALL:-$HOME/.deno}", bin_dir="$deno_install/bin") and install.ps1 ($BinDir = if ($DenoInstall) { "${DenoInstall}\bin" } else { "${Home}\.deno\bin" }) — the $DENO_INSTALL/bin layout, the macOS/Linux placement of DENO_INSTALL= before sh (not before curl), and the Windows $env:DENO_INSTALL pattern are all accurate. Anchor #customizing-the-install-directory resolves to the new H3.
Holding approval until CI is green.
- nit:
last_modified: 2026-03-05should bump to today — this adds a new sub-section, not a typo fix.
Addresses review feedback — this PR adds new content, so the frontmatter should reflect today's date.
fibibot
left a comment
There was a problem hiding this comment.
Only change since prior review is the last_modified bump — nit addressed. Holding APPROVE until lint and link check is green.
|
The
This PR only touches cc @bartlomieju — happy to leave it to you whether to merge through this or wait for a styleguide fix first. |
|
@lunadogbot needs a merge and resolve confclits |
# Conflicts: # runtime/getting_started/installation.md
fibibot
left a comment
There was a problem hiding this comment.
Diff against my last reviewed sha is the last_modified bump plus the unrelated "command not found" section pulled in from main via the merge — the PR's own contribution is unchanged. Lint and deploy/deno/docs both green. Approving.
|
@bartlomieju this is ready to merge |
Summary
Adds a new "Customizing the install directory" sub-section to
runtime/getting_started/installation.mdthat documents theDENO_INSTALLenvironment variable supported by the officialdeno_installshell and PowerShell scripts. Includes a short cross-reference from the intro paragraph so readers see the option before they run the installer.This was requested by a reader of the installation page who pointed out that
DENO_INSTALLis not currently mentioned anywhere on the page, even though the page links todeno_install(which honors it).What's new on the page
### Customizing the install directorysub-section under "Download and install" with:\$DENO_INSTALL/bin.curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/opt/deno sh. The variable is placed beforesh(not beforecurl) so that the installer process actually sees it —DENO_INSTALL=... curl ... | shwould only export the variable tocurl, not to the piped shell, which is a subtle footgun worth getting right in the docs.\$env:DENO_INSTALL.bindirectory toPATHand a pointer to thedeno_installREADME as the canonical reference.Behavior was verified by reading the current
install.sh(defaultsdeno_install="\${DENO_INSTALL:-\$HOME/.deno}") andinstall.ps1(\$DenoInstall = \$env:DENO_INSTALL) served from deno.land.deno fmtwas run on the file.Closes #3047
Closes bartlomieju/orchid-inbox#55
cc @bartlomieju
Test plan
runtime/getting_started/installation.mdlocally withdeno task serveand confirm the new sub-section reads cleanly and the anchor link from the intro paragraph resolves to it.