前端npm和yarn更换国内淘宝镜像
友情提示
1 | 注意:淘宝镜像源切换地址,旧地址提供服务到2022 年 05 月 31 日,官方不再进行维护,但仍然可以使用 |
NPM
查询当前镜像
1 | npm get registry |
设置为淘宝镜像
1 | npm config set registry https://registry.npm.taobao.org/ (旧地址) |
设置为官方镜像
1 | npm config set registry https://registry.npmjs.org/ |
YARN
查询当前镜像
1 | yarn config get registry |
设置为淘宝镜像
1 | yarn config set registry https://registry.npm.taobao.org/ (旧地址) |
设置为官方镜像
1 | yarn config set registry https://registry.yarnpkg.com |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 小鱼儿尚游!