npm Hostname/IP does not match certificate's altnames

npm 大约 325 字

错误信息

npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.cnpmjs.org/xss 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 set strict-ssl false
阅读 144 · 发布于 2021-06-14

————        END        ————

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批