发布:2024/2/25 21:21:32作者:管理员 来源:本站 浏览次数:1048
设置改变默认下载地址的方法
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
© Copyright 2014 - 2025 柏港建站平台 ejk5.com. 渝ICP备16000791号-4