Runtime error while compiling Phoenix: "error parsing file ".../OTP-PUB-KEY.hrl, got: {:error, :enoent}"

Looks like you have invalid/incomplete installation

I recomment you two options:

  1. Reinstall erlang

  2. Use asdf with asdf-erlang and asdf-elixir which allows you to have different versions of erlang and elixir for different projects

Personally I prefer an asdf

2 Likes