shijith.k

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?

Showing Posts 1 to 10

Eiji

Eiji

You need to install archive first:

mix archive install hex phx_new
OvermindDL1

OvermindDL1

This means that you did not install the phx_new archive. 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

shijith.k OP

But I already have other Phoenix projects running in my system. Does that not mean that I have installed the phx_new archive?

mix archive shows this

* hex-0.19.0
* phx_new
Archives installed at: /Users/sk/.asdf/installs/elixir/1.6.6/.mix/archives
OvermindDL1

OvermindDL1

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

shijith.k OP

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.hex then will that affect my other projects, which as you know, are using very old versions.!:neutral_face:

OvermindDL1

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. :slight_smile:

shijith.k

shijith.k OP

ok, thanks a lot :slightly_smiling_face:
Will upgrade everything to the latest versions soon.!

shijith.k

shijith.k OP

even after upgrading hex mix phx.new still throws ** (Mix) The task "phx.new" could not be found.
Now mix archive gives

* hex-0.20.1
Archives installed at: /Users/sk/.asdf/installs/elixir/1.9.1/.mix/archives

Also I installed phx_new

OvermindDL1

OvermindDL1

You installed a new asdf prefix, each has it’s own archives and all so run mix archive install hex phx_new again as your mix archive command didn’t have it. Make sure to run everything in the same asdf prefix.

shijith.k

shijith.k OP

mix archive.install hex phx_new 1.4.8 this installed the latest version

Where Next? Top

Trending in Questions Top

RSP87
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
nseaSeb
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
RemyXRenard
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
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
samoloth
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
FlyingNoodle
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 Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews