How to download specific version composer






















Learn more. How to downgrade or install a specific version of Composer? Ask Question. Asked 1 year ago. Active 15 days ago. Viewed k times. I'm getting the following error in a project I'm setting up: You are using Composer 2, which some of your plugins seem to be incompatible with. Improve this question. Brendan Strong Brendan Strong 1, 1 1 gold badge 8 8 silver badges 10 10 bronze badges.

Add a comment. Active Oldest Votes. Assuming a regular composer installation, to rollback to version 1 of composer, you simply execute: composer self-update When you want to go back to version 2 which you should, after updating or removing the incompatible plugins : composer self-update The above will take you to the latest on any of the two major versions. You can also "update" to a specific version just by passing the version number to self-update : composer self-update 1.

Improve this answer. Just want to add, if get permission error like me, then add "sudo" to run the cmd. Additional info: If you're inside of a version, you can change by using de specific version number. Let's say you're in composer 1.

But changing major version is as described above. Pratik Bharodiya Pratik Bharodiya 91 6 6 bronze badges. Amir Khan Amir Khan 81 4 4 bronze badges. Connect and share knowledge within a single location that is structured and easy to search. I've got some packages host on the Gitlab of my company.

I want to request a specific version of these packages but each time I try, composer download the latest commit of the master branch. Change the version requirement to dev-master , followed by a hash and the Git tag name, e. Change the version requirement to dev-master , followed by a hash and the Git commit reference, e. An alternative to working with repositories of "type": "vcs" is to define a custom package "type": "package" inside repositories and work with a reference.

This will tie the version to a specific commit reference , in this case dd6ed3c8. Add repository via Composer Cli and pull latest git commit :. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 5 years, 10 months ago. Active 2 years ago. Viewed 44k times.

How can I configure the composer. Improve this question. Instead, please link to this page or check how to install Composer programmatically.

You can install composer to a specific directory by using the --install-dir option and providing a target directory. You can specify the filename default: composer. You can install composer to a specific release by using the --version option and providing a target release. The installer provides more options for specific environments, use the --help option to see all of them. By default the installer and composer self-update will download the latest stable version only.

You may select a different download channel though.



0コメント

  • 1000 / 1000