This error comes up in restrictive environments.
Please is there a way to install from a downloaded copy?
C:\
λ mix local.rebar --force
** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {~c"builds.hex.pm", 443}}, {:inet, [:inet], :etimedout}]}
Could not install Rebar because Mix could not download metadata at https://builds.hex.pm/installs/rebar3-1.x.csv.
C:\
λ
EDIT: I’ve got rebar3 up and running on Windows by using the rebar3.cmd script from the rebar3 website.
C:\Paperless\aaa
λ rebar3 -v
rebar 3.22.0 on Erlang/OTP 26 Erts 14.2.3
Mix still complains it cannot find rebar3 … strange.
C:\Paperless\aaa
λ mix compile
==> uniq
Compiling 4 files (.ex)
Generated uniq app
==> aaa
Could not find "rebar3", which is needed to build dependency :elli
Shall I install rebar3? (if running non-interactively, use "mix local.rebar --force") [Yn] y
** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {~c"builds.hex.pm", 443}}, {:inet, [:inet], :etimedout}]}
Could not install Rebar because Mix could not download metadata at https://builds.hex.pm/installs/rebar3-1.x.csv.
C:\Paperless\aaa
λ