概述
错误:
npm install --save @riophae/vue-treeselect
npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.cnpmjs.org/@riophae%2fvue-treeselect failed, reason: Hostname/IP does not match certificate's altnames: 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:UsersadminAppDataRoamingnpm-cache_logs2020-06-20T00_52_30_293Z-debug.log
解决:
依次执行:1,2,3
1.npm config set strict-ssl false
2.npm install -g supervisor
3.npm install --global vue-cli
最后
以上就是陶醉宝贝为你收集整理的npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID解决办法的全部内容,希望文章能够帮你解决npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID解决办法所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复