【问题标题】:Unable to install tsd packages due to the following error由于以下错误,无法安装 tsd 包
【发布时间】:2017-12-20 19:10:16
【问题描述】:
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

需要帮助!

【问题讨论】:

  • 你试过谷歌搜索error 140770FC吗?除此之外,错误给你的建议应该足够了。您也可以按照错误提示发布您得到的调试日志。
  • 如果需要,考虑运行本地开发 NTLM 代理,如 cntlm.sourceforge.net(在某处有 zip 下载),并将所有工具指向那里
  • 覆盖企业代理服务器的简单方法

标签: node.js angular typescript twitter-bootstrap-3


【解决方案1】:

看起来您在与 github 交谈时遇到了安全问题。 创建文件:

.tsdrc

内容如下:

{
     "strictSSL": false
}

然后再试一次。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-16
    • 2021-02-09
    • 2017-09-18
    • 1970-01-01
    • 2021-08-09
    • 2017-10-10
    • 2021-09-06
    相关资源
    最近更新 更多