I am unable to create files with the mix command?

I am trying to create a new application with the mix command mix phx.new blog_app but my terminal is giving me this error, i am not sure why, it worked before

Error:

** (Mix) The task "phx.new" could not be found
Note no mix.exs was found in the current directory

Any idea how to go around this?

Have you installed Phoenix generator?

Run this command mix archive.install hex phx_new

Can read the Installation docs

4 Likes

I thought I did because it did generate an app before. After I reset the computer from an update it didn’t work. mix archive.install hex phx_new this command that Tom posted made it generate mix files again.

Thank You Guys