前端npm和yarn更换国内淘宝镜像

NPM

查询当前镜像

npm get registry

设置为淘宝镜像

npm config set registry https://registry.npm.taobao.org/ (旧地址)

npm config set registry https://registry.npmmirror.com/ (最新地址)

设置为官方镜像

npm config set registry https://registry.npmjs.org/

YARN

查询当前镜像

yarn config get registry

设置为淘宝镜像

yarn config set registry https://registry.npm.taobao.org/ (旧地址)

yarn config set registry https://registry.npmmirror.com/ (最新地址)

设置为官方镜像

yarn config set registry https://registry.yarnpkg.com

相关推荐
阿杆15 分钟前
文心快码 3.5S 发布!实测插件开发,Architect 模式令人惊艳
前端·后端·文心快码
文心快码BaiduComate16 分钟前
我用Comate搭建「公园找搭子」神器,再也不孤单啦~
前端·后端·微信小程序
全栈技术负责人27 分钟前
前端全链路质量监控体系建设与实践分享
前端·系统架构·前端框架
sorryhc42 分钟前
0~1构建一个mini blot.new(无AI版本)
前端·前端框架·openai
南方者1 小时前
文心文心,其利锻心!这个古风射覆,它帅到我了!文心快码 3.5S
前端·敏捷开发·文心快码
永日456701 小时前
学习日记-CSS-day53-9.11
前端·css·学习
云枫晖1 小时前
JS核心知识-this的指向
前端·javascript
magnet1 小时前
用img标签渲染的svg VS 直接使用svg标签,有什么区别?
前端·html
ze_juejin1 小时前
createComponent的environmentInjector详解
前端