Skip to main content

Basic Configuration

User preferences live in the Windows registry. Manage them with nvm config (alias: nvm cfg).

nvm config list
nvm config get mode auto_use
nvm config set auto_install=true
nvm config reset auto_install
nvm config docs

On certified fleets, machine policy can override these values. See Administrative Templates and the registry policy reference.

Structured Docs

Use nvm config docs --json for machine-readable metadata.

Mode and install location​

OptionDefaultValuesDescription
modeshimshim, linkSpecifies how Node.js commands and versions are managed, either through shim-based routing or direct junction/symlink linking. Same as nvm use shim/nvm use link. See Operating Modes.
root%LOCALAPPDATA%\Author Software\nvm\installsDirectory pathRoot directory where Node.js versions are installed. Changing this does not move existing installs; migrate files yourself or reinstall versions.

Downloads and mirrors​

OptionDefaultValuesDescription
node_mirrorhttps://nodejs.org/distOne or more URLsMirror URL(s) for downloading Node.js. In nvm config, pass a comma-delimited list. In the registry (MirrorNode), store as REG_MULTI_SZ (one URL per entry) — not a single comma-separated REG_SZ. See Download Mirrors.
npm_mirrorhttps://registry.npmjs.orgOne or more URLsMirror URL(s) for the npm registry fallback. Same rules: comma-delimited in nvm config; REG_MULTI_SZ (MirrorNpm) in the registry. See Download Mirrors.
cache_downloadsfalseBooleanWhether to cache downloaded files for offline use.
allow_download_cache_removaltrueBooleanAllow removing cached downloads.
allow_insecure_downloadsfalseBooleanAllow expired/invalid SSL certificates when downloading assets.
auto_installed_modules(none)Comma-delimited npm package namesComma-delimited list of global npm modules to automatically install with new Node.js versions. (REG_MULTI_SZ as AutoInstallModuleList under policy.)
nvm config set node_mirror=https://npmmirror.com/mirrors/node
nvm config set node_mirror=https://mirror.author.io/runtime/nodejs,https://nodejs.org/dist
nvm config set cache_downloads=true
nvm config set auto_installed_modules=typescript,prettier

Proxy​

Proxies are automatically detected/applied from HTTP_PROXY, HTTPS_PROXY, or NO_PROXY environment variables.

OptionDefaultValuesDescription
proxy(none)URLThe plain text URL of the proxy. This is a hidden from everyday cfg docs output since it is usually auto-detected.

On certified builds proxies are usually set by policy (see registry reference).

Corporate Proxies

The community build supports basic proxies. IWA, WPAD, and PAC proxies are supported in Certified Builds, available September 2026.

Project detection and auto behavior​

These options apply primarily in shim mode (and related nvm pin workflows).

OptionDefaultValuesDescription
auto_detect.nvmrc, .node-version, package.jsonComma-delimited filenamesProject files to inspect for version (shim-only).
default_detect_file.nvmrcFilenameThe default file to write to when saving/pinning a version to a project.
auto_usetrueBooleanAutomatically switch to auto-detected version to run the specified scripts without modifying the system version (shim-only).
auto_installfalseBooleanAutomatically install missing auto-detected version (node shim + proxy: npm/npx/yarn/pnpm/globals; also nvm pin).
auto_install_prompttrueBooleanPrompt before automatically installing missing auto-detected version (node shim + proxy; also nvm pin).
nvm config set auto_install=true auto_install_prompt=false
nvm config set auto_detect=.nvmrc,.node-version

Package managers​

OptionDefaultValuesDescription
pm_mismatch_actionerrorignore, warn, errorAction to take when a mismatch between npm/pnpm/yarn and Node.js versions is detected during install or use:

  • ignore: stay silent
  • warn: continue after a warning
  • error: stop the operation (safest default)

Logging and announcements​

OptionDefaultValuesDescription
log_executionsfalseBooleanWhether to log every Node.js invocation (ex: node file.js). (shim-only)
disable_announcementsfalseBooleanWhether to disable project and release announcements. License expiry warnings still run.
nvm config set log_executions=true
nvm config set disable_announcements=true

(not listed in cfg docs)

TopicWhere
Version aliases (stable=24.x, etc.)Prefer nvm alias; values are stored as aliases
Turn version management on/offnvm on/nvm off (writes enabled)
Active/last versionManaged by nvm use (active_version, last_version)
Shim security/V8 flagsRegistry reference (EnforcePermissionModel, FreezeV8GlobalObjects, DisableEvalAndStringExecution)
Enterprise locks (mirrors, version allow/block lists, proxies)Administrative Templates and registry policies
nvm config docs
nvm config docs --json