How to Switch Between Composer Version 1 and 2
Sometimes when working with different projects, you might need to change frecuently between different composer versions. To get that as a smooth process, you can proceed that way with the self-update command:
Switch to composer version 1
1 |
composer self-update --1 |
Switch to composer version 2
1 |
composer self-update --2 |
Switch to composer specific version
1 2 |
composer self-update 1.10.22 composer self-update 2.1.3 |
Switch to latest version
1 |
composer self-update |
Hope it helps.