docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Downgrade composer

Open niketkanoi opened this issue 5 years ago • 3 comments

How can we downgrade to using Composer 1?

I tried bin/composer self-update --1 which resulted in below error

[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: "/usr/local/bin/composer" could not be written.
rename(/usr/local/bin/composer): failed to open stream: Permission denied

niketkanoi avatar Sep 01 '21 14:09 niketkanoi

I am having the same issue, would also like to know. Even tried just starting over with a clean install but it also seems to come with 2.1.0..

Asitis avatar Sep 02 '21 11:09 Asitis

Figured it out, try this - it worked for me: bin/root composer self-update --1

Asitis avatar Sep 02 '21 12:09 Asitis

@Asitis yes, that line is totally ok to run and the right way to do this 👍

markshust avatar Sep 07 '21 13:09 markshust