Error SSL Issue npm WIndows



你好,我在使用npm时遇到了SSL问题。我运行这个命令:NPM install ionic

,我得到以下错误:

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "ionic"
npm ERR! node v4.1.2
npm ERR! npm  v2.14.4
npm ERR! 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!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR!     C:xampphtdocsreceipt_findernpm-debug.log
我已经使用以下命令添加了我的公司证书

npm config -g set cafile C:optCyberoam_Single_CA.pem

如何处理?

谢谢。

请发出以下命令以松开不同证书的问题cn:

npm config set strict-ssl false

最新更新