downgrade composer version 2 to 1 code example Example: composer downgrade to version 1 sudo composer self-update --1