How to install a specific version of package using Composer?
composer require vendor/package:version for example: composer require refinery29/test-util:0.10.2
composer require vendor/package:version for example: composer require refinery29/test-util:0.10.2
Composer 1.x and 2.x Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately. Obviously you’ll need to remove references to that package within your app. I’m currently running the following version of Composer: Documentation Updates 26/10/2020 – Updated answer to assert command works … Read more
Your composer.phar command lacks the flag for executable, or it is not inside the path. The first problem can be fixed with chmod +x composer.phar, the second by calling it as ./composer.phar -v. You have to prefix executables that are not in the path with an explicit reference to the current path in Unix, in order to avoid going … Read more
The right way to do this is: I must admit the flag here is not quite obvious as to what it will do. Update As of v1.0.0-beta2 –update-with-dependencies is the default and is no longer required.
Your software dependencies have an incompatible version conflict. At the same time you want to install any Laravel 4.2.x version, and “zizaco/entrust” from its master branch. And that master branch requires at least Laravel 5.0 (roughly speaking). The problem comes from the dependency on branches. It’s likely that the package zizaco/entrust once was using Laravel … Read more