2

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的安全证书无效错误。

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

4

1 回答 1

3

尝试设置ca和配置选项strict-ssl(分别为 nullfalseregistry

于 2012-10-04T10:39:59.137 回答