Codeship Basic npm安装失败错误:SSL错误:CERT_UNTRUSTED

我遇到了一致的问题,在运行npm install时,我的Codeship Basic设置步骤失败:

 npm http GET https://registry.npmjs.org/babel-runtime npm ERR! Error: SSL Error: CERT_UNTRUSTED npm ERR! at ClientRequest.<anonymous> (/home/rof/.nvm/v0.6.21/lib/node_modules/npm/node_modules/request/main.js:440:26) npm ERR! at ClientRequest.g (events.js:156:14) npm ERR! at ClientRequest.emit (events.js:67:17) npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1256:7) npm ERR! at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:91:29) npm ERR! at CleartextStream.socketOnData [as ondata] (http.js:1288:20) npm ERR! at CleartextStream._push (tls.js:375:27) npm ERR! at SecurePair.cycle (tls.js:734:20) npm ERR! at EncryptedStream.write (tls.js:130:13) npm ERR! at Socket.ondata (stream.js:38:26) npm ERR! [Error: SSL Error: CERT_UNTRUSTED] npm ERR! You may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 4.2.0-42-generic npm ERR! command "node" "/home/rof/.nvm/v0.6.21/bin/npm" "install" npm ERR! cwd /home/rof/src/ npm ERR! node -v v0.6.21-pre npm ERR! npm -v 1.1.37 npm ERR! message SSL Error: CERT_UNTRUSTED npm http GET https://registry.npmjs.org/axios 

同样的npm install / package.json在我的本地系统上没有问题。

我试图避免只是禁用SSL证书validation,因为这似乎不是正确的解决底层的问题。

其他人在使用Codeship时看到了这一点?

 npm ERR! node -v v0.6.21-pre npm ERR! npm -v 1.1.37 

这似乎是节点版本的生命结束问题。

您正在运行较旧版本的节点和NPM,并且SSL getclosures。 基本上唯一的select是使用非SSLregistry,或者使用更新版本的node / npm。

 npm config set strict-ssl false npm config set registry="http://registry.npmjs.org/" 

我不相信包含在Node 0.6中的npm客户端包含通过SSL连接到npmregistry所必需的证书。 正如你所知道的那样,SSL证书过期了,所以这只是使用旧软件连接到SSL服务器的一个自然结果,据我所知。

我链接到NPM问题 – https://github.com/npm/npm/issues/4391