Closed nelsonic closed 5 years ago
Ok ... it was PEBKAC ... I skipped a step! When the installer asks:
Fetch and install dependencies? [Yn] y
I hastily hit the [Enter]
key instead of the y
key ... so the dependencies were not installed correctly.
Run the following in order:
cd hello
mix deps.get
cd assets && npm install && node node_modules/webpack/bin/webpack.js --mode development
cd ..
Then when you run mix ecto.create
it will work.
mix phx.server
Works: http://localhost:4000
This thread: https://github.com/phoenixframework/phoenix/issues/842 included the error message but not the solution ... If you face this issue, just re-trace your steps and it will work. If not, comment in this thread and we will help you!
I had the same issue while CI GitLab runner execution. It is solved using the suggestion given: Add mix local.rebar --force before running mix ecto.create
When following the Programming Phoenix 1.4 Book "Create a Throwaway Project" (page 19), (_which is the same as the "hello world" app in the "Up and Running": https://hexdocs.pm/phoenix/up_and_running.html#content that everyone should follow_)
But saw the following output: