【发布时间】:2018-12-10 05:56:40
【问题描述】:
环境:rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04
当我尝试安装 rebar3 插件(例如 rebar3_hex)时,它会报告:
===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Plugin rebar3_hex not available. It will not be used.
我的~/.config/rebar3/rebar.config只有一行:
{plugins, [rebar3_hex]}.
按照https://www.rebar3.org/docs/using-available-plugins#hex-package-management 和https://github.com/tsloughter/rebar3_hex 的建议。
我无法从 google、rebar3 文档和此处存在的问题获得更多有用的信息。
所以,我打开一个新问题来询问为什么以及如何解决它。
ps:我使用rebar3的代理链,它报告|DNS-response| repo.hex.pm is 151.101.54.2
inet_gethost[10708]: WARNING:Malformed reply (header) from worker process 10709.
【问题讨论】:
-
你试过安装 rebar 3.6.1 吗?好像这个问题在最新版本中修复了
-
@Eugen Dubrovin,我在 rebar3.6.1 上进行了测试,没有什么不同。这似乎是代理相关问题的原因?
-
在我的例子中,当设置代理环境变量而不是使用代理链时它是固定的。