"error" message when running mix phx.server

Hello and welcome,

Probably You forgot to cd into the application directory, as this message seems to indicate…

By the way it would be a good idea to mention which course You follow.