npm
the package manager for JavaScript
Configuration mirror
shell
npm config set registry "https://registry.npmmirror.com"Other package manager
bun
PowerShell
@"
[install]
registry = "https://registry.npmmirror.com"
"@ | Out-File -FilePath "$HOME/.bunfig.toml" -Encoding utf8bash
cat <<EOF > ~/.bunfig.toml
[install]
registry = "https://registry.npmmirror.com"
EOFpnpm
shell
pnpm config set registry "https://registry.npmmirror.com"yarn
berry (>=2)
shell
yarn config set npmRegistryServer "https://registry.npmmirror.com"classic (v1)
shell
yarn config set registry "https://registry.npmmirror.com"Recommend Configuration
bash
pnpm config set verify-deps-before-run=install