基于next 3.2.5
原npm源:https://registry.npmjs.org
淘宝源:https://registry.npmmirror.com
- npm
$npm config get registry #获取当前镜像地址
$npm config set registry https://registry.npmmirror.com #将镜像设为淘宝镜像
$npm config get registry #查看确认
- yarn
$yarn config get registry #获取当前镜像地址
$yarn config set registry https://registry.npmmirror.com #全局替换镜像源
$yarn config get registry
- pnpm
$pnpm config get registry #获取当前镜像地址
$pnpm config set registry https://registry.npmmirror.com #全局替换镜像源为淘宝
$pnpm config get registry