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?
I used ‘mix new test’ to create a new project, then ‘mix deps.get’ to try to load ex_doc.
I tried ‘mix local.rebar --force’ and got a ‘Segmentation fault’
So something is wrong.
Do I need hexpm? This is a potential solution I found elsewhere.
Some background - ,my laptop (6 months old) needed repair, and the motherboard was replaced, and I had to re-install Windows 10. I don’t have a lot of stuff installed. I’ve been learning Elixir basics for a few weeks, and just tried adding a package for the first time.
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.