[英]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 我仍然有一个来自“以前的1.3”的安装
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...
因为在这里和那里阅读,有些告诉您使用mix phoenix...
,另一些(最新)告诉您运行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; mix phoenix.gen.json
可以,但是您得到了旧的Web文件夹; while mix phx.gen.json
puts you on the correct path 而mix phx.gen.json
将您mix phx.gen.json
正确的路径
I could live off that by remembering to never type mix.phoenix; 我可以记住不要输入mix.phoenix; but still, I'd be looking to find a way to make my workstation unable to run those misleading mix phoenix...
但是,我仍然希望找到一种方法来使我的工作站无法运行那些令人误解的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 **(混合)找不到任务“ phoenix.new”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.