我收到以下错误消息。我搜索了自签名证书问题,然后找到了 this回答,但我做了这里提到的一切。我只是四处走动,仍然没有成功。
到目前为止我做了什么 :
问题 :
还是没有成功。
你有解决办法吗?
{
"rejectUnauthoriozed":false,
"httpProxy": "",
"httpsProxy": "",
"insecure":true,
"strict-ssl":false
}
错误信息:
C:\..\src\UI.Spa>typings install dt~angular --global --save
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/angular/versions/latest"
typings ERR! caused by self signed certificate in certificate chain
typings ERR! cwd C:\..\src\UI.Spa
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\..\\AppData\\Roaming\\npm\\node_modules\\typings\\dist\\bin.js" "install" "dt~angular" "--global" "--save"
typings ERR! node -v v5.10.1
typings ERR! typings -v 1.1.0
typings ERR! code EUNAVAILABLE
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
最佳答案
我的 .typingsrc
文件位于项目根级别(typings.json 所在的位置)。
它只包含:
proxy="http://xxx.xxx.xxx:80"
rejectUnauthorized=false
关于typescript-typings - 在公司代理后面安装打字包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37816106/