软件包未安装 - “错误:无法建立隧道套接字”

时间:2012-10-04 10:10:01

标签: npm

Debian挤压(通过Tor运行的Internet连接),从当前源构建的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无效的安全证书错误。

任何人都知道这里缺少什么? (它已经发生在过去,虽然出于某种奇怪的原因而自行修复。)

1 个答案:

答案 0 :(得分:3)

尝试设置castrict-ssl配置选项(null和false resp。)不起作用,但是将registry配置选项设置为http://registry.npmjs.org/并且包是再次安装 - 这应该是一个ssl域吗?