npm ERR! request to https://registry.npm.taobao.org/axios failed, reason: certificate has expired

前言

一直使用 npm build没问题的,突然出现报错:

复制代码
npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/axios failed, reason: certificate has expired

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2024-01-22T06_15_36_690Z-debug.log

解决方案

复制代码
npm config set strict-ssl false

This is a alternative shared in this url https://github.com/nodejs/node/issues/3742

posted @   牛奔  阅读(2143)  评论(2编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
点击右上角即可分享
微信分享提示