dement
Mix deps.get results in "could not find hex"
I just installed Elixir 1.12.3 and Erlang/OTP 22 (64 bit) in a Windows 10 machine (so I’m new and just learning the basics). I created a new project, and am trying to install 1 dependency - ex_doc. When I run ‘mix deps.get’, the response is:
Could not find Hex, which is needed to build dependency :ex_doc
Shall I install Hex? ....
Responding with Y to install hex results in a segmentation fault, as does entering ‘mix local.hex --force’.
I uninstalled and re-installed Elixir/Erlang, but have the same problem.
Isn’t Hex installed with Elixir? How do I solve this?
Thanks.
Marked As Solved
dement
Just more "Segmentation faults’.
I found this thread https://github.com/elixir-lang/elixir/issues/9987. I tried some the suggested solutions near the bottom, but they didn’t work.
I unstalled Elixir/Erlang, and first installed Erlang/OTP v. 24. Then I used the Windows installer to install Elixir 1.12.3, No more segmentation faults! (at least, so far).
I was able to install ex_doc and use it, so I’m assuming updating Erlang fixed the problem.
Thanks all for your help.








