output of mix local.hex commend:
15:12:33.910 [error] Process #PID<0.145.0> raised an exception
** (ErlangError) Erlang error: :eacces
erlang.erl:2272: :erlang.open_port({:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary])
(kernel 7.3) inet_gethost_native.erl:184: :inet_gethost_native.server_init/2
15:12:33.911 [error] GenServer :inet_gethost_native_sup terminating
** (stop) :eacces
erlang.erl:2272: :erlang.open_port({:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary])
(kernel 7.3) inet_gethost_native.erl:184: :inet_gethost_native.server_init/2
Last message: {:EXIT, #PID<0.145.0>, {:eacces, [{:erlang, :open_port, [{:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary]], [file: ‘erlang.erl’, line: 2272]}, {:inet_gethost_native, :server_init, 2, [file: ‘inet_gethost_native.erl’, line: 184]}]}}
** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {‘repo.hex.pm’, 443}}, {:inet, [:inet], {:eoptions, {:could_not_start_server, :inet_gethost_native}}}]}
Could not install Hex because Mix could not download metadata at https://repo.hex.pm/installs/hex-1.x.csv.
Alternatively, you can compile and install Hex directly with this command:
mix archive.install github hexpm/hex branch latest
i can download this file on browser.