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

相关推荐
ziyue757524 分钟前
vue修改element-ui的默认的class
前端·vue.js·ui
树叶会结冰1 小时前
HTML语义化:当网页会说话
前端·html
冰万森1 小时前
解决 React 项目初始化(npx create-react-app)速度慢的 7 个实用方案
前端·react.js·前端框架
Moonbit1 小时前
安装Wasm版的MoonBit工具链
后端·node.js·webassembly
牧羊人_myr1 小时前
Ajax 技术详解
前端
浩男孩1 小时前
🍀封装个 Button 组件,使用 vitest 来测试一下
前端
蓝银草同学1 小时前
阿里 Iconfont 项目丢失?手把手教你将已引用的 SVG 图标下载到本地
前端·icon
布列瑟农的星空1 小时前
重学React —— React事件机制 vs 浏览器事件机制
前端
一小池勺2 小时前
CommonJS
前端·面试