一、Yarn设置淘宝镜像
- 查询当前配置的镜像
yarn config get registry // 默认: https://registry.yarnpkg.com - 设置成淘宝镜像
yarn config set registry https://registry.npmmirror.com // 淘宝镜像新域名,旧域名2024年1月1日过期弃用 - 换成原来的镜像
yarn config set registry https://registry.npmjs.org
二、NPM设置淘宝镜像
- 查询当前配置的镜像
npm get registry - 设置成淘宝镜像
npm config set registry https://registry.npmmirror.com - 换成原来的镜像
npm config set registry https://registry.npmjs.org
3366

被折叠的 条评论
为什么被折叠?



