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

相关推荐
亿元程序员2 分钟前
为什么Cocos都4.0了还有人用2.x?
前端
MomentYY7 分钟前
AI 到底是“懂”,还是在“猜”?
前端·人工智能·ai编程
鹏毓网络科技9 分钟前
Cursor Rules 文件配置实战:3 个隐藏参数让我每月少写 40% 样板代码
前端·github
没烦恼30111 分钟前
无痕模式下 HTTP\-First 拦截引发的“页面刷新”误判
前端
文心快码BaiduComate15 分钟前
从个人提效到组织提效:Comate辅助构建自我进化的AI研发系统
前端·程序员
叫我Paul就好44 分钟前
尝试 Node 搭建后端-开发框架
node.js
hunterandroid1 小时前
Compose 状态管理:remember、rememberSaveable 与状态提升
前端
星栈1 小时前
Dioxus 接数据库最容易写歪的 3 个地方:sqlx + SQLite 怎么接才顺
前端·rust·前端框架
晴虹1 小时前
vue3-scroll-more:横向滚动条-元素或页签过多滚动显示处理的组件
前端·vue.js
代码搬运媛1 小时前
Claude 全栈开发专用 Rules 配置
前端