小问题分享:request to httpsregistry.npm.taobao.orgecharts failed, reason certificate has expired

小问题分享:request to https://registry.npm.taobao.org/echarts failed, reason: certificate has expired

npm ERR! A complete log of this run can be found in

​ 今天在做Echats教程时遇到一个小问题、npm淘宝镜像过期,分享一下解决方法,直接上指令

1.清除原本的npm缓存

npm cache clean --force
在这里插入图片描述

2.修改镜像到最新的淘宝镜像

npm config set registry https://registry.npmmirror.com
小问题分享:request to httpsregistry.npm.taobao.orgecharts failed, reason certificate has expired_第1张图片

3.查看目前的配置列表,主要看镜像地址

npm config list

你可能感兴趣的:(问题解决记录,npm,前端,node.js)