淘宝镜像的https证书过期

npm error errno CERT_HAS_EXPIRED

npm error request to https://registry.npm.taobao.org/util/download/util-0.10.4.tgz?cache=0\&sync_timestamp=1562337713422\&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Futil%2Fdownload%2Futil-0.10.4.tgz f ailed, reason: certificate has expired

解决方案:

1 清空缓存

复制代码
npm cache clean --force

2 查看当前的npm镜像设置

复制代码
npm config get registry

3 切换新源

复制代码
npm config set registry https://registry.npmmirror.com

4 查看新源是否设置成功

复制代码
npm config get registry
复制代码

5 可以正常安装需要的工具了

复制代码
npm insatll
相关推荐
吠品1 小时前
企业信任基石OV SSL证书
网络协议·https·ssl
2501_916008892 小时前
全面介绍Fiddler、Wireshark、HttpWatch、SmartSniff和firebug抓包工具功能与使用
android·ios·小程序·https·uni-app·iphone·webview
暖馒2 小时前
Modbus应用层协议的深度剖析
网络·网络协议·c#·wpf·智能硬件
开源技术3 小时前
DNS详解——域名是如何解析的
http
吠品7 小时前
命令行揭示SSL证书真相
https·github·ssl
三水不滴10 小时前
有 HTTP 了为什么还要有 RPC?
经验分享·笔记·网络协议·计算机网络·http·rpc
宝塔面板11 小时前
AllinSSL 一站式搞定 SSL 自动续期:永久免费,开源可自托管
网络·网络协议·ssl
csdn今天倒闭了吗11 小时前
飞牛lucky配置ipv6 ddns+ssl+反向代理
网络·网络协议·ssl
JavinLu11 小时前
ios 配置了代理且使用 chls.pro/ssl 下载不了证书,无法弹出下载证书的提示问题
网络协议·ios·ssl
菜鸟特工00712 小时前
javax.net.ssl.SSLPeerUnverifiedException 异常如何处理
网络协议·.net·ssl