shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could not be found. After googling I understood that the problem is with Hex version. I have other phoenix projects running in previous elixir versions, soon if I update Hex using mix local.hex, will that affect all my other projects also?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Eiji
You need to install archive first:
OvermindDL1
This means that you did not install the
phx_newarchive. What command did you use to install it and what was the result of it?What is your complete output when running
mix archive?shijith.k
But I already have other Phoenix projects running in my system. Does that not mean that I have installed the
phx_newarchive?mix archiveshows thisOvermindDL1
You don’t need the archive to run phoenix, it’s sole purpose is just to setup an initial new project scaffolding (that you can still otherwise do manually).
Seems like you have it, what is the entire and complete output of
mix phx.new?Also you really need to update hex, I’m surprised the system hasn’t asked you to yet. Run
mix.local.hex.Also whoa, that’s quite a bit old, you really should update elixir (and OTP) too. o.O
Elixir is up to 1.9.1 and OTP is up to 22.1. It’s generally go to stay within 2 or 3 versions of recent as a few big libraries tend to not work before that.
shijith.k
I know I have to upgrade the elixir and OTP versions, but we are in the middle of something and are waiting for that to be done to upgrade everything.
If I run
mix.local.hexthen will that affect my other projects, which as you know, are using very old versions.!OvermindDL1
No, it’s supposed to always be updated, it’s the interface to the hex server, if it’s not updated then it might not work at all, so if anything it would take it from non-working to working.
shijith.k
ok, thanks a lot
Will upgrade everything to the latest versions soon.!
shijith.k
even after upgrading hex
mix phx.newstill throws** (Mix) The task "phx.new" could not be found.Now
mix archivegivesAlso I installed phx_new
OvermindDL1
You installed a new asdf prefix, each has it’s own archives and all so run
mix archive install hex phx_newagain as yourmix archivecommand didn’t have it. Make sure to run everything in the same asdf prefix.shijith.k
mix archive.install hex phx_new 1.4.8this installed the latest version