× Install fail! Error: certificate has expired Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34) at TLSSocket.emit (events.js:400:28) at TLSSocket._finishInit (_tls_wrap.js:937:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
看文字是证书过期了,一头问号
如下设置,都不管用
1、取消ssl验证: npm config set strict-ssl false 这个方法一般就可以解决了。 2、更换npm镜像源: npm config set registry http://registry.cnpmjs.org npm config set registry http://registry.npm.taobao.org npm i -g firebase-tools@latest
标签:npm,certificate,js,报错,registry,org,expired From: https://www.cnblogs.com/dianzan/p/18028696