Jebathon
Jebathon

Reputation: 4561

Windows - Elixir 'mix' is undefined within iex intepreter

I want to build an application using 'mix' command.

mix new appname --module MODULE

But on the iex interpreter it isn't recognized

enter image description here

I read online another alternative to running what I want is to pass it as a script argument:

$ bin/elixir bin/mix new appname --module MODULE

but this doesn't work either

Upvotes: 2

Views: 694

Answers (1)

tom
tom

Reputation: 19153

mix is an executable that you need to run from your OS shell, not the Erlang/Elixir shell.

Upvotes: 5

Related Questions