
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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复