** (Mix) The task "phoenix.new" could not be found

D:\Projects>mix phoenix.new blog
** (Mix) The task “phoenix.new” could not be found

D:\Projects>mix local.hex
Found existing archive: c:/Users/Dell-Latitude/.mix/archives/hex-0.13.0.
Are you sure you want to replace it with “https://repo.hex.pm/installs/1.3.0/hex-0.13.0.ez”? [Yn] Y

  • creating c:/Users/Dell-Latitude/.mix/archives/hex-0.13.0

D:\Projects>mix phoenix.new blog
** (Mix) The task “phoenix.new” could not be found

How can I fix this problem?

2 Likes

You have not installed the phoenix templates:

mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

EDIT: You can setup a phoenix app manually without the templates if you want, just specify the versions in your mix.exs file as normal, but the templates (which are what add phoenix.new do the setup work for you, making it easy, but still entirely optional). :slight_smile:

5 Likes

Thank OvermindDL1

2 Likes