Today tried to install elixir and phoenix in Apple M1 computer. Elixir was installed through brew.
A phoenix app was created which could be started with “mix phx.server”, but when call “iex -S mix phx.server”, I got:
I can see mix in the PATH:
/opt/homebrew/opt/postgresql@17/bin:/opt/homebrew/opt/postgresql@17/bin:/opt/miniconda3/bin:/opt/miniconda3/condabin:/Users/qxu/opt/homebrew/bin/mix:/opt/homebrew/opt/postgresql@17/bin:/Users/qxu/opt/homebrew/bin:/Users/qxu/opt/homebrew/Cellar/erlang/27.2.1/lib/erlang/erts-15.2.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin: