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 , Visitors
Released under the MIT License.