简体   繁体   中英

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.

Solution not achieved according to this thread: 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.

Following CLI command installed only latest release (eg. 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:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new-1.3.4.ez

PS. Solution helped me to install different Phoenix versions with different ASDF Elixir versions.

eg.

  • Elixir: 1.7.4, Phoenix: 1.4.0-dev.0
  • Elixir: 1.7.0, Phoenix: 1.3.4

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