When Erlang opens and I try to ‘mix phx.new’ I get the error:
‘(CompileError) iex:22 undefined function mix/1’
When Erlang opens and I try to ‘mix phx.new’ I get the error:
‘(CompileError) iex:22 undefined function mix/1’
mix
is a command line tool. You should run it straight from your shell
When I try from Windows10 command line, ‘mix phx.new’ I get
'** (Mix) The task “phx.new” could not be found
Note no mix.exs was found in the current directory
(I’m just trying to get to the point where I can follow the YouTube tutorials on Phoenix coding, which all start, it seems, after they have this stuff up and running)
Unfortunately, I never tried developing on windows, but looks like it finds mix
tool. So you are probably missing phoenix app generator.
Try:
mix archive.install hex phx_new 1.5.7
and after that try
mix pix.new <project_name>
Thanks very much, you were right.
It also prompted me to install ‘hex’ before ‘phx_new’
Now I’m a step closer. Thanks.