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/
相关推荐
xuankuxiaoyao6 分钟前
Axios-图书列表案例
开发语言·前端·javascript
影寂ldy8 分钟前
C# 多播委托
前端·javascript·c#
dy171710 分钟前
Vue3 多文件上传
前端·javascript·vue.js
带娃的IT创业者10 分钟前
深度解析 Bun:重新定义 JavaScript 运行时的性能边界
开发语言·javascript·node.js·ecmascript·bun·运行时
文阿花19 分钟前
Echarts实现3D饼状图
前端·javascript·echarts·饼状图
智码看视界25 分钟前
老梁聊全栈系列:Vue2与Vue3核心区别及学习路线指南
前端·vue.js·学习
qq_3630669327 分钟前
react 使用web component导出静态html报告
前端·react.js·html·页面导出
weixin_4577630830 分钟前
展示youtube的视频
前端·javascript·html
雨翼轻尘31 分钟前
03_HTML进阶标签与CSS入门
前端·css·html·入门·进阶标签
云水一下31 分钟前
Vue.js从零到精通系列(六):组合式函数与逻辑复用——打造自己的 Hooks 工具箱
前端·javascript·vue.js