我是靠谱客的博主 俊逸乌龟,这篇文章主要介绍npm 下载bug ERR! code ERR_TLS_CERT_ALTNAME_INVALID,现在分享给大家,希望可以做个参考。

在这里插入图片描述

npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.cnpmjs.org/echarts failed, reason: Hostname/IP does not match certificate's altname
s: Host: registry.cnpmjs.org. is not in the cert's altnames: DNS:r.cnpmjs.org

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersAppDataRoamingnpm-cache_logs2020-06-14T13_36_10_807Z-debug.log

我在npm install echarts --save的时候报出了上述错误
解决方法:npm config set strict-ssl false
最后成功下载
在这里插入图片描述

最后

以上就是俊逸乌龟最近收集整理的关于npm 下载bug ERR! code ERR_TLS_CERT_ALTNAME_INVALID的全部内容,更多相关npm内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部