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
| Option | Registry | Default |
|---|---|---|
node_mirror | MirrorNode | https://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:
- Local archive source (
local_dir/version cache) when present (see Local Installations and Download Cache). - Walk the ordered
node_mirrorlist. - 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
| Option | Registry | Default |
|---|---|---|
npm_mirror | MirrorNpm | https://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.
Related
| Topic | Doc |
|---|---|
| Full preference table | Basic Configuration |
| HTTP(S) proxy | HTTP Proxy |
Policy/.reg types | Registry Policy Reference |
| Author Mirror | Author Mirror |
| NVM Firewall | NVM Firewall |
| Offline archives | Air-gapped Installations |