淘宝镜像的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
原文地址:https://blog.csdn.net/wxb880114/article/details/140554363
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!