nvm镜像源
nvm npm_mirror https://npmmirror.com/mirrors/npm/
nvm node_mirror https://npmmirror.com/mirrors/node/
npm
查看源
npm get registry
临时修改
npm --registry https://registry.npmmirror.com install axios
持久使用
npm config set registry https://registry.npmmirror.com
还原
npm config set registry https://registry.npmjs.org
yarn
查看源
yarn config get registry
临时修改
yarn add axios --registry=https://registry.npmjs.org/
持久修改
yarn config set registry https://registry.npmmirror.com/
pnpm
查看源
pnpm get registry
临时修改
pnpm --registry https://registry.npmmirror.com install axios
持久使用
pnpm config set registry https://registry.npmmirror.com
还原
pnpm config set registry https://registry.npmjs.org