node报错npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID npm ERR! npm ERR! request to https://registry.cnpmj
2020-06-25 04:55
1236 查看
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 install -g npm 时报的错!
解决办法:
输入:
- npm config set strict-ssl false
- npm install -g supervisor
之后再输入npm install -g npm即可
相关文章推荐
- vue npm ERR! code ENOSELF npm ERR! Refusing to install package with name "vue-resource" under a 报错处理
- Python 出现错误 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
- npm ERR! cb() never called!报错和npm ERR! Response timeout while trying to fetch https://registry.npmjs
- 使用NPM命令安装库时,遇到 npm ERR! fetch failed https://registry.npmjs.org/xxx的问题
- 报npm ERR! fetch failed https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-c错误
- npm ERR! fatal: Unable to look up github.com (port 9418) (Name or service not known)
- 遇见NET::ERR_CERT_COMMON_NAME_INVALID问题的原因及解决办法
- 浏览器显示不安全提示(net::ERR_CERT_COMMON_NAME_INVALID)
- npm 资源库中注册用户 npm ERR! code EAUTHIP npm ERR! Unable to authenticate, need: Basic错误
- apache 配置https中间证书防止SSL不受信任报NET :: ERR_CERT_AUTHORITY_INVALID错误
- 浏览器访问页面报错,如果访问出现如下错误,错误代码: NET::ERR_CERT_AUTHORITY_INVALID ,浏览器新加入了HSTS策略
- iOS Invalid bitcode signature(Linker command falied with exit code 1 (use -v to see invocation))
- npm ERR! Error: CERT_UNTRUSTED的问题解决
- android模拟器 一个错误:X Error of failed request: BadRequest (invalid request code or no such operation)
- 用httpWebRequest调用https开头的php webservice,报“基础连接已经关闭: 未能为SSL/TLS 安全通道建立信任关系”错误的解决方法
- How to solve peer dependancy problem with angular---quickstart 提示npm ERR! argv
- npm ERR! code EINTEGRITY npm ERR! sha1- 报错日志 npm ERR! code EINTEGRITY npm ERR! sha1-OGchPo3Xm/Ho8jA
- Chrome NET::ERR_CERT_AUTHORITY_INVALID 错误分析及处理
- npm install 出现UNABLE_TO_GET_ISSUER_CERT_LOCALLY