gpt4 book ai didi

node.js - SSL 错误 : CERT_UNTRUSTED on dotCloud

转载 作者:搜寻专家 更新时间:2023-11-01 00:10:01 25 4
gpt4 key购买 nike

我在 dotCloud 上部署 Node.js 服务时看到以下错误:

23:03:59.958870: [www] npm ERR! Error: SSL Error: CERT_UNTRUSTED
23:03:59.959405: [www] npm ERR! at ClientRequest.<anonymous> (/opt/node/v0.8.3/lib/node_modules/npm/node_modules/request/main.js:440:26)
23:03:59.959736: [www] npm ERR! at ClientRequest.g (events.js:185:14)
23:03:59.960068: [www] npm ERR! at ClientRequest.EventEmitter.emit (events.js:88:17)
23:03:59.960399: [www] npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1445:7)
23:03:59.968852: [www] npm ERR! at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
23:03:59.969361: [www] npm ERR! at CleartextStream.socketOnData [as ondata] (http.js:1356:20)
23:03:59.969696: [www] npm ERR! at CleartextStream.CryptoStream._push (tls.js:396:27)
23:03:59.970028: [www] npm ERR! at SecurePair.cycle (tls.js:750:20)
23:03:59.970359: [www] npm ERR! at EncryptedStream.CryptoStream.write (tls.js:131:13)
23:03:59.970694: [www] npm ERR! at Socket.ondata (stream.js:38:26)
23:03:59.971012: [www] npm ERR! If you need help, you may report this log at:
23:03:59.971299: [www] npm ERR! <http://github.com/isaacs/npm/issues>
23:03:59.971587: [www] npm ERR! or email it to:
23:03:59.971876: [www] npm ERR! <npm-@googlegroups.com>
23:03:59.972208: [www]
23:03:59.972543: [www] npm ERR! System Linux 2.6.38.2-grsec-dotcloud-ec2
23:03:59.972852: [www] npm ERR! command "node" "/opt/node/default/bin/npm" "install"
23:03:59.973251: [www] npm ERR! cwd /home/dotcloud/rsync-1388703750593/app
23:03:59.973584: [www] npm ERR! node -v v0.8.3
23:03:59.973914: [www] npm ERR! npm -v 1.1.44
23:04:00.331100: [www] npm ERR!
23:04:00.331630: [www] npm ERR! Additional logging details can be found in:
23:04:00.331955: [www] npm ERR! /home/dotcloud/rsync-1388703750593/app/npm-debug.log
23:04:00.332280: [www] npm ERR! not ok code 0
23:04:01.058860: [www] -- Build failed: "npm install" failed with return code 1

最佳答案

要么更新你的 Node/npm(首选),要么运行 npm config set ca null

他们最近在 npmjs.org 更改了证书,因为旧证书已过期,但您的 npm 已将旧证书硬编码到其中。

PS:将 strict-ssl 设置为 false 是一个非常糟糕的主意,除非您知道自己在做什么。

关于node.js - SSL 错误 : CERT_UNTRUSTED on dotCloud,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20893690/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com