Closed kennblvnp closed 6 years ago
Hi @kennblvnp Would you please include some more of the error message
@nikolajlovenhardt
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^1.2 for nikolajlovenhardt/laravel-google-ads
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- nikolajlovenhardt/laravel-google-ads 1.2.3 requires googleads/googleads-php-lib ~31.0.0 -> satisfiable by googleads/googleads-php-lib[31.0.0].
- nikolajlovenhardt/laravel-google-ads 1.2.4 requires googleads/googleads-php-lib ~31.0.0 -> satisfiable by googleads/googleads-php-lib[31.0.0].
- Conclusion: don't install googleads/googleads-php-lib 31.0.0
- nikolajlovenhardt/laravel-google-ads 1.2.2 requires googleads/googleads-php-lib ~30.0.0 -> satisfiable by googleads/googleads-php-lib[30.0.0].
- Conclusion: don't install googleads/googleads-php-lib 30.0.0
- nikolajlovenhardt/laravel-google-ads 1.2.1 requires googleads/googleads-php-lib ~29.0.0 -> satisfiable by googleads/googleads-php-lib[29.0.0].
- Conclusion: don't install googleads/googleads-php-lib 29.0.0
- nikolajlovenhardt/laravel-google-ads 1.2.0 requires googleads/googleads-php-lib ~28.0.0 -> satisfiable by googleads/googleads-php-lib[28.0.0].
- Conclusion: remove phpdocumentor/reflection-docblock 4.2.0
- Installation request for nikolajlovenhardt/laravel-google-ads ^1.2 -> satisfiable by nikolajlovenhardt/laravel-google-ads[1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4].
- Conclusion: don't install phpdocumentor/reflection-docblock 4.2.0
- googleads/googleads-php-lib 28.0.0 requires phpdocumentor/reflection-docblock ^3.0.3 -> satisfiable by phpdocumentor/reflection-docblock[3.0.3, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.3.0, 3.3.2].
- Can only install one of: phpdocumentor/reflection-docblock[3.0.3, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.1.0, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.1.1, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.2.0, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.2.1, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.2.2, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.2.3, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.3.0, 4.2.0].
- Can only install one of: phpdocumentor/reflection-docblock[3.3.2, 4.2.0].
- Installation request for phpdocumentor/reflection-docblock (locked at 4.2.0) -> satisfiable by phpdocumentor/reflection-docblock[4.2.0].
Installation failed, reverting ./composer.json to its original content.
As you can read from the log - my package requires a specific version of reflection-docblock, but you already depend on another version of the same package. "Can only install one of: phpdocumentor/reflection-docblock[3.3.2, 4.2.0]."
You need to fix this, so that both of the packages depend on the same version.
I had this problem also @kennblvnp
I got around it by installing 3.0.3 of phpdocumentor/reflection-docblock first
"phpdocumentor/reflection-docblock": "3.0.3",
and THEN
composer require nikolajlovenhardt/laravel-google-ads
What I ended up with was
"phpdocumentor/reflection-docblock": "3.0.3",
"nikolajlovenhardt/laravel-google-ads": "^1.2"
The composer.json of the googleads/googleads-php-lib package requires this
"phpdocumentor/reflection-docblock": "^4.0.0 || ^3.0.3",
Perhaps that will help you.
thanks @mmccaff !
When running this command:
composer require nikolajlovenhardt/laravel-google-ads
In Laravel 5.5 and PHP 7.0 development