我在企业代理后面的 Ubuntu 14.04.5 LTS 上使用 Meteor,但无法应用任何更新,甚至无法创建 Meteor 实例。运行 meteor update 给我以下信息:
Unable to update package catalog (are you offline?)
If you are using Meteor behind a proxy, set HTTP_PROXY and HTTPS_PROXY
environment variables or see this page for more details:
https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxy
This project is already at Meteor 1.4.1.1, the latest release.
=> Errors while upgrading packages:
While downloading autoupdate@1.2.11...:
error: tunneling socket could not be established, cause=write EPROTO
139992700094336:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:
等-- 对所有其他包重复最后一个错误。
- 我已经用我的用户名和密码设置了 HTTP_PROXY 和 HTTPS_PROXY。这些设置似乎适用于除 Meteor 以外的所有东西。例如,APT-GET 代理设置已配置且工作正常
- NPM 配置了代理和 https-proxy,设置为 ssl-strict=false,并且在 Meteor 之外工作正常。我也试过将寄存器设置为“http://registry.npmjs.org/”——但 Meteor 没有成功。
当我安装 Meteor 时,我需要在 curl 上使用“-k”或“--insecure”选项,否则我会收到 SSL 错误。使用此选项 (curl -k https://install.meteor.com/ | sh),Meteor 安装正常且没有任何错误
我已经看到几个关于此错误的问题,并且修复程序适用于 NPM 等。在 Meteor 之外,但对于 Meteor,我仍然被卡住了。 meteor 更新是否有类似的“--insecure”选项?或者有没有我可以添加类似选项的脚本? Meteor 实际使用什么机制来请求更新?
最佳答案
设置 https_proxy=http://{proxy} 对我有用!
关于ssl - meteor 错误 : "Tunneling socket could not be established" - SSL issue with properly configured proxy?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39185234/