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本身的问题,而且与网络连接有关。在大多数情况下,您在代理后面或网络设置不良。
如果您在代理服务器后面,请确保正确设置'proxy'配置。见: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
}
然后再试一次。