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
Comments
  • Latest
  • Oldest
  • Hottest
No comment yet.
Powered by Waline v3.5.6

Views 1336 , Visitors 864
Released under the MIT License.