DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Downgrade composer from 2.x to 1.x via brew
Sascha Eggenberger
Sascha Eggenberger

Posted on • Updated on • Originally published at saschaeggi.Medium

Downgrade composer from 2.x to 1.x via brew

You just upgraded your brew packages and composer updated itself to version 2.x but you still need version 1.x? This is how you can downgrade (& upgrade again):

Show available versions of composer:

brew log composer

For me the latest 1.x version to date is: composer 1.10.15

Let's downgrade

composer self-update 1.10.15

To switch back to the 2.x version use

composer self-update --rollback

Top comments (2)

Collapse
 
actouf profile image
Julien actouf • Edited on

Let's downgrade
composer self-update --1

  --1                        Force an update to the stable channel, but only use 1.x versions
  --2                        Force an update to the stable channel, but only use 2.x versions
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mmanreza profile image
Michael Manreza

This is very helpful. Thank you so much!

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: