前端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

相关推荐
然我18 分钟前
防抖与节流:如何让频繁触发的函数 “慢下来”?
前端·javascript·html
鱼樱前端22 分钟前
2025前端人一文看懂 Broadcast Channel API 通信指南
前端·vue.js
烛阴1 小时前
非空断言完全指南:解锁TypeScript/JavaScript的安全导航黑科技
前端·javascript
鱼樱前端1 小时前
2025前端人一文看懂 window.postMessage 通信
前端·vue.js
快乐点吧1 小时前
【前端】异步任务风控验证与轮询机制技术方案(通用笔记版)
前端·笔记
pe7er2 小时前
nuxtjs+git submodule的微前端有没有搞头
前端·设计模式·前端框架
七月的冰红茶2 小时前
【threejs】第一人称视角之八叉树碰撞检测
前端·threejs
爱掉发的小李2 小时前
前端开发中的输出问题
开发语言·前端·javascript
祝余呀3 小时前
HTML初学者第四天
前端·html
Q_Q5110082853 小时前
python的婚纱影楼管理系统
开发语言·spring boot·python·django·flask·node.js·php