Skip to main content

Download Mirrors

NVM for Windows downloads Node.js archives from one or more Node mirrors, and can fall back to one or more npm registry URLs in shim mode. Set these with nvm config (or machine policy on certified fleets).

This page covers basic mirror URLs for Community Builds and Certified Builds. For HTTP(S) proxies (how traffic leaves the machine), see HTTP Proxy. For the Author policy-aware mirror (Governance), see Author Mirror. For client version allow/deny lists, see NVM Firewall.

Node.js mirrors​

OptionRegistryDefault
node_mirrorMirrorNodehttps://nodejs.org/dist

Used when nvm install (and related commands) need to fetch a Windows Node.js .7z and checksums, after any local install/cache miss.

In nvm config, pass one URL or a comma-delimited list. In the registry, store MirrorNode as REG_MULTI_SZ (one URL per entry).

nvm config set node_mirror=https://nodejs.org/dist
nvm config set node_mirror=https://npmmirror.com/mirrors/node
nvm config set node_mirror=https://npmmirror.com/mirrors/node,https://nodejs.org/dist
nvm config get node_mirror

Install resolution order:

  1. Local archive source (local_dir/version cache) when present (see Local Installations and Download Cache).
  2. Walk the ordered node_mirror list.
  3. Stop at the first successful response.

Put the preferred mirror first. A public fallback is useful if the primary host is unreachable.

nvm env shows the effective mirror list after config and policy merge.

npm registry mirrors​

OptionRegistryDefault
npm_mirrorMirrorNpmhttps://registry.npmjs.org

npm_mirror is not used to download Node.js installers. In shim mode it supplies a fallback npm (and related package-manager) registry URL when the user or project has not already set one.

Same list rules as Node mirrors: comma-delimited in nvm config; REG_MULTI_SZ for MirrorNpm in the registry.

nvm config set npm_mirror=https://registry.npmjs.org
nvm config set npm_mirror=https://registry.npmmirror.com,https://registry.npmjs.org
nvm config get npm_mirror

Keep Node mirrors and npm registries as separate concerns.

TopicDoc
Full preference tableBasic Configuration
HTTP(S) proxyHTTP Proxy
Policy/.reg typesRegistry Policy Reference
Author MirrorAuthor Mirror
NVM FirewallNVM Firewall
Offline archivesAir-gapped Installations