The task "ecto.setup" could not be found

I used
Erlang/OTP 21 [erts-10.3.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]
Phoenix v1.2.5

syukri@syukri-X555BP:~/Documents$ mix phoenix.new lat2

  • creating lat2/config/config.exs
  • creating lat2/config/dev.exs
  • creating lat2/config/prod.exs
  • creating lat2/config/prod.secret.exs
  • creating lat2/config/test.exs
  • creating lat2/lib/lat2.ex
  • creating lat2/lib/lat2/endpoint.ex
  • creating lat2/test/views/error_view_test.exs

when Iconfigure your database in config/dev.exs and run:

$ mix ecto.create or

$ mix exto.setup
I got a problem, like this

syukri@syukri-X555BP:~/Documents/lat2$ mix exto.setup
warning: found quoted keyword “test” but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of Unicode letters, numbers, underscore, and @ do not require quotes
mix.exs:52

==> file_system
Compiling 7 files (.ex)
Generated file_system app
==> connection
Compiling 1 file (.ex)
Generated connection app
==> gettext
Compiling 1 file (.yrl)
Compiling 1 file (.erl)
Compiling 20 files (.ex)
Generated gettext app
===> Compiling ranch
src/ranch_ssl.erl:128: Warning: ssl:ssl_accept/2: deprecated; use ssl:handshake/2 instead

===> Compiling poolboy

Welcome,

It would be nice to specify which versions of Phoenix and Elixir You do use.

It seems You are on Windows.

Also this might be a typo

mix exto.setup

# it should be
mix ecto.setup
3 Likes

thank you