How is it possible to install older versions of Phoenix and Liveview?

Hi! I’m running the latest version of Phoenix and LiveView, which is making it very hard for me to follow the book “Programming Phoenix LiveView” (I am new to the elixir ecosystem). That’s why I decided to downgrade, but I cannot figure out how to install an older version of the phoenix and the generators. Many thanks in advance!

My current version of Phoenix is

❯ mix phx.new --version
Phoenix installer v1.7.7

And live view is

 `{:phoenix_live_view, "~> 0.19.0"},`

Hello,

Maybe there is no need to downgrade - B10.0 is available and uses 1.7.7 / 0.19.0

1 Like

Hey. As @Nefcairon wrote, the book’s last release does use the latest Phoenix / LiveView versions, but should you still decide to downgrade - you can provide a version when installing an archive such as phx_new from hex: mix archive.install hex phx_new 1.7.0

Run mix help archive.install to see more options (if you want to install an unreleased version from GitHub for example).

3 Likes

Thanks for the heads up! I did not know :smiley:

Awesome, that’s just what I was looking for. Thanks!

1 Like