Looks like you have invalid/incomplete installation
I recomment you two options:
-
Reinstall erlang
-
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