skanel
** (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?
Marked As Solved
OvermindDL1
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). ![]()
Also Liked
skanel
Thank OvermindDL1
NobbZ
That course is based on Elixir 1.3 from the couple of previews I was able to click through.
I’d definitely ask for a refund, as “last updated 2022” is to be misinterpreted as “uses current versions”.
Given what I could see, I would not think that the course has been updated in the last 5 years.
PS: Never pay money for books, courses or certifications that do not tell you what versions to expect or certified for on the cover.
NobbZ
Where do you get those instructions from?
Those look quite ancient and even mix old style generator installation (phoenix_new) with new style generator invocation (phx.new)
Please follow the instructions provided here:
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








