d:\Angular2_SampleExamples\typings>tsd install angular2 es6-promise rx rx-lite --save
[ERR!] cwd : d:\Angular2_SampleExamples\typings
[ERR!] os : Windows_NT 6.1.7600
[ERR!] argv : "node" "C:\\Users\\WG97\\AppData\\Roaming\\npm\\node_modules\\tsd\\build\\cli.js" "install" "angular2" "es6-promise" "rx" "rx-lite" "--save"
[ERR!] node : v0.10.35
[ERR!] tsd : 0.6.4
[ERR!] Error: tunneling socket could not be established, cause=6436:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c
:795:
[ERR!] CODE : ECONNRESET
[ERR!] tunneling socket could not be established, cause=6436:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:795:
这很可能不是 tsd 本身的问题 并且与网络连接有关。 在大多数情况下,您位于代理服务器后面或网络设置不良。
如果您使用代理,请确保 “代理”配置设置正确。请参阅:https://github.com/DefinitelyTyped/tsd#tsdrc
[ERR!] tsd.json could not be retrieved
[ERR!] .tsdrc could not be retrieved
[ERR!] Please include the following file with any support request:
d:\Angular2_SampleExamples\typings\tsd-debug.log
需要帮助!
最佳答案
看起来您在与 github 通信时遇到了安全问题。 创建文件:
.tsdrc
包含以下内容:
{
"strictSSL": false
}
然后重试。
关于node.js - 由于以下错误,无法安装 tsd 软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32481304/