简体   繁体   中英

how to disable (uninstall) the old `mix phoenix`?

Coming back into phoenix after a while; I still have an install from the "previous 1.3" hanging around

Which lead to some "nice" issues trying to understand what was happening; because reading here and there, some tells you to use mix phoenix... , some other (more recent) tells you to run mix phx...

The problem is, those two commands does not end with the same result

mix phoenix.gen.json works, but you get the old web folder; while mix phx.gen.json puts you on the correct path

I could live off that by remembering to never type mix.phoenix; but still, I'd be looking to find a way to make my workstation unable to run those misleading mix phoenix...

I'm still new to this ecosystem; just don't have a clue where to search to clean this install

best;

You can accomplish this by writing the following in your terminal:

mix archive uninstall phoenix_new

You can confirm it has been removed by attempting to run:

mix phoenix.new hello

You should get an error that says:

** (Mix) The task “phoenix.new” could not be found

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM