gpt4 book ai didi

npm - 未安装软件包 - "Error: tunneling socket could not be established"

转载 作者:行者123 更新时间:2023-12-04 05:30:11 27 4
gpt4 key购买 nike

关闭。这个问题是off-topic .它目前不接受答案。












想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。

8年前关闭。




Improve this question




Debian 挤压(通过 Tor 运行的互联网连接),从当前源构建的 nodejs - 错误才刚刚开始发生:

root@...# npm install coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm ERR! Error: tunneling socket could not be established, cause=socket hang up
npm ERR! at ClientRequest.onError (/usr/local/lib/node_modules/npm/node_modules/request/tunnel.js:161:17)
npm ERR! at ClientRequest.g (events.js:193:14)
npm ERR! at ClientRequest.EventEmitter.emit (events.js:93:17)
npm ERR! at CleartextStream.socketErrorListener (http.js:1330:9)
npm ERR! at CleartextStream.EventEmitter.emit (events.js:93:17)
npm ERR! at SecurePair.exports.connect.cleartext._controlReleased (tls.js:1298:15)
npm ERR! at SecurePair.EventEmitter.emit (events.js:93:17)
npm ERR! at SecurePair.error (tls.js:952:10)
npm ERR! at EncryptedStream.CryptoStream._done (tls.js:432:17)
npm ERR! at EncryptedStream.CryptoStream._pull (tls.js:577:12)
npm ERR! If you need help, 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 3.2.0-3-486
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "coffee-script"
npm ERR! cwd /home/...
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ECONNRESET
npm ERR!
...
npm ERR! not ok code 0

Iceweasel 还显示了 https://registry.npmjs.org/coffee-script 的无效安全证书错误。 .

有人知道这里缺少什么吗? (它过去曾发生过,但由于某些奇怪的原因而自行修复。)

最佳答案

尝试设置 castrict-ssl配置选项(空和假响应),不起作用,但是设置 registry http://registry.npmjs.org/ 的配置选项并且软件包正在再次安装 - 那么这应该是一个 ssl 域吗?

关于npm - 未安装软件包 - "Error: tunneling socket could not be established",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12724974/

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