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/
相关推荐
兆子龙25 分钟前
用 Auto.js 实现挂机脚本:从找图点击到循环自动化
前端·架构
SuperEugene31 分钟前
表单最佳实践:从 v-model 到自定义表单组件(含校验)
前端·javascript·vue.js
昨晚我输给了一辆AE8631 分钟前
为什么现在不推荐使用 React.FC 了?
前端·react.js·typescript
不会敲代码131 分钟前
深入浅出 React 闭包陷阱:从现象到原理
前端·react.js
不会敲代码134 分钟前
React性能优化:深入理解useMemo和useCallback
前端·javascript·react.js
Dilettante25835 分钟前
我的 Monorepo 实践经验:从基础概念到最佳实践
前端·前端工程化
只会cv的前端攻城狮1 小时前
Elpis-Core — 融合 Koa 洋葱圈模型实现服务端引擎
前端·后端
Java小卷2 小时前
流程设计器为啥选择diagram-js
前端·低代码·工作流引擎
HelloReader2 小时前
Isolation Pattern(隔离模式)在前端与 Core 之间加一道“加密网关”,拦截与校验所有 IPC
前端
兆子龙3 小时前
从 float 到 Flex/Grid:CSS 左右布局简史与「刁钻」布局怎么搞
前端·架构