[英]How to install earlier version of Phoenix with Mix CLI?
Can't install earlier Phoenix version (eg. 1.3.4) than latest stable (eg. 1.4.0) with mix archive.install command. 使用mix archive.install命令无法安装比最新的稳定版(例如1.4.0)更早的Phoenix版本(例如1.3.4)。
Solution not achieved according to this thread: https://github.com/phoenixframework/phoenix/issues/2991 根据此线程无法实现的解决方案: https : //github.com/phoenixframework/phoenix/issues/2991
$ mix archive.install hex phx_new 1.3.4
** (Mix) No matching version for phx_new 1.3.4 (from: mix.exs) in registry
The latest version is: 1.4.0
Try to install some earlier Phoenix versions along Latest Release in ASDF Version Manager. 尝试在ASDF版本管理器的“最新版本”中安装一些早期的Phoenix版本。
Following CLI command installed only latest release (eg. 1.4.0-dev.0): 以下CLI命令仅安装了最新版本(例如1.4.0-dev.0):
$ mix archive.install hex phx_new 1.4.0-dev.0
Get an workaround to install any specific earlier Phoenix Releases (eg. 1.3.4) with following CLI commands: 使用以下CLI命令获取一种解决方法,以安装任何特定的早期Phoenix版本(例如1.3.4):
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new-1.3.4.ez
PS. PS。 Solution helped me to install different Phoenix versions with different ASDF Elixir versions. 解决方案帮助我使用不同的ASDF Elixir版本安装了不同的Phoenix版本。
eg. 例如。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.