Phoenix tasks not working

I’ve been using Phoenix without any problem, however today I’ve been unable to run any task except from mix phoenix.new.

I get the following errors:

** (Mix) The task "phoenix.gen.html" could not be found. Did you mean "phoenix.new"?

** (Mix) The task "phoenix.gen.json" could not be found. Did you mean "phoenix.new"?

** (Mix) The task "phoenix.server" could not be found. Did you mean "phoenix.new"?

mix help | grep -i phoenix returns

mix local.phoenix     # Updates Phoenix locally
mix phoenix.new       # Creates a new Phoenix v1.2.1 application

I’ve already tried running mix local.phoenix and mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez but it didn’t fix it.

Edit: Uninstalled Elixir and installed it again and it works now.

Are you in the folder of a phoenix-project?

1 Like

Yes, I managed to solve it by uninstalling and installing again Elixir. Thanks for the help!