Problem setting up Phoenix project - "The task 'phoenix.server' could not be found"

Hello everybody,

I’m trying to setup a new Phoenix project.

However, I run into a problem when I’m giving the command

“mix phoenix.server”

after correctly going through previous steps.

The error states:
“(Mix) The task ‘phoenix.server’ could not be found, Did you mean ‘’?”

Does anyone have any idea where the problem might lie and how I could solve the issue?

Thanks in advance.

Which version of phoenix are you using?

1 Like

Are you running the command in the directory you created previously with mix and have you really done mix deps.get inside that directory?

The steps in order to do are the following, you are not allowed to miss a single one of them:

  1. mix foo
  2. cd foo
  3. mix deps.get
  4. mix phoenix.server

One of the perfomances was actually very simply done in the wrong directory.

This problem is solved by now. Thanks all.