yarn npm 镜像源 https://registry.npm.taobao.org/axios: certificate has expired“

参考链接

error An unexpected error occurred: "https://registry.npm.taobao.org/axios: certificate has expired"

原因: 淘宝镜像原地址2024年1月22日已过期

npm 切换镜像源

js 复制代码
npm config set registry https://registry.npmmirror.com
//其他
npm 官方原始镜像网址是:https://registry.npmjs.org/
淘宝最新 NPM 镜像:https://registry.npmmirror.com
阿里云 NPM 镜像:https://npm.aliyun.com
腾讯云 NPM 镜像:https://mirrors.cloud.tencent.com/npm/
华为云 NPM 镜像:https://mirrors.huaweicloud.com/repository/npm/
网易 NPM 镜像:https://mirrors.163.com/npm/
中科院大学开源镜像站:http://mirrors.ustc.edu.cn/
清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/
腾讯,华为,阿里的镜像站基本上比较全

yarn 切换镜像源

查看当前镜像源

yarn config get registry 如果是淘宝,则切换

js 复制代码
 yarn config set registry https://registry.npmmirror.com/
相关推荐
Cosimac42 分钟前
用 npm 做免费图床,这操作绝了!
npm·github
用户63879947730543 分钟前
每组件(Per-Component)与集中式(Centralized)i18n
前端·javascript
SsunmdayKT43 分钟前
React + Ts eslint配置
前端
奶糖的次元空间1 小时前
带你用 Javascript 生成器玩转「会暂停」的函数
node.js
开始学java1 小时前
useEffect 空依赖 + 定时器 = 闭包陷阱?count 永远停在 1 的坑我踩透了
前端
zerosrat1 小时前
从零实现 React Native(2): 跨平台支持
前端·react native
狗哥哥1 小时前
🔥 Vue 3 项目深度优化之旅:从 787KB 到极致性能
前端·vue.js
青莲8431 小时前
RecyclerView 完全指南
android·前端·面试
青莲8431 小时前
Android WebView 混合开发完整指南
android·前端·面试
GIS之路1 小时前
GDAL 实现矢量数据转换处理(全)
前端