Error: certificate is not yet valid at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:936:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12)
stack: Error: certificate is not yet valid at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:936:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12) [npminstall:get] retry GET https://registry.npm.taobao.org/vuex after 100ms, retry left 4, error: Error: certificate is not yet valid at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:936:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12) { code: 'CERT_NOT_YET_VALID', name: 'ResponseError', data: undefined, path: '/vuex', status: -1, headers: {}, res: [Object] }, status: -1, headers: {},
解决方法:
关闭npm ssl严格证书检查,
npm set strict-ssl false
标签:npm,解决办法,ssl,证书,tls,js,TLSSocket,wrap From: https://www.cnblogs.com/muzhang/p/17856018.html