下载npm依赖包报错 npm ERR! code ERR

错误信息:

npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.cnpmjs.org/vue-cli 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:\Users\yy\AppData\Roaming\npm-cache_logs\2020-06-12T05_41_01_727Z-debug.log

解决方法:
npm config set strict-ssl false
npm install -g supervisor

最新回复(0)
Google XML地图百度 XML地图Google txt地图百度 txt地图17社