im为ngx-bootstrap npm install ngx-bootstrap --save
运行安装cmd
但出现以下错误
npm ERR! request to https://registry.npmjs.org/ngx-bootstrap failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user1\AppData\Roaming\npm-cache\_logs\2018-09-01T13_52_56_500Z-debug.log
我想知道可能是什么问题
答案 0 :(得分:0)
运行npm config set strict-ssl false
然后重新运行npm install ngx-bootstrap --save