Skip to content

node package 设置镜像源

npm

设置为淘宝镜像源

shell
npm config set registry https://registry.npm.taobao.org

查看当前镜像源

shell
npm config get registry

yarn

设置为淘宝镜像源

sh
yarn config set registry https://registry.npm.taobao.org

查看当前镜像源

shell
yarn config get registry

pnpm

设置为淘宝镜像源

shell
pnpm config set registry https://registry.npm.taobao.org

查看当前镜像源

shell
pnpm config get registry
评论
  • 按正序
  • 按倒序
  • 按热度
来发评论吧~

Views 266, Visitors 224
TodayViews 41, TodayVisitors 27