I run this to install dompdf:
composer require barryvdh/laravel-dompdf
And the error looks like this:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for barryvdh/laravel-dompdf ^0.8.1 -> satisfiable by barryvdh/laravel-dompdf[v0.8.1].
- Conclusion: remove dompdf/dompdf v0.7.0
- Conclusion: don't install dompdf/dompdf v0.7.0
- barryvdh/laravel-dompdf v0.8.1 requires dompdf/dompdf ^0.8 -> satisfiable by dompdf/dompdf[v0.8.0, v0.8.1].
- Can only install one of: dompdf/dompdf[v0.8.0, v0.7.0].
- Can only install one of: dompdf/dompdf[v0.8.1, v0.7.0].
- Installation request for dompdf/dompdf (locked at v0.7.0) -> satisfiable by dompdf/dompdf[v0.7.0].
Installation failed, reverting ./composer.json to its original content.
Any of you know what's wrong or what should i do?
The error message states that barryvdh/laravel-dompdf package require "dompdf/dompdf": "^0.8" which is newer version but you have dompdf/dompdf v0.7.0 which is older version installed.
So you should try to remove old version of dompdf to install new version.
Related
We try to update from 2.4.2 to 2.4.4. (and tried to 2.4.3 as well) and as mentioned in the official docs, two steps should do it:
composer require magento/product-community-edition 2.4.4
composer update
On our installation, we get the following errors:
root#a9758412c9f0:/opt/bitnami/magento# composer require magento/product-community-edition 2.4.4 --update-with-all-dependencies
./composer.json has been updated
Running composer update magento/product-community-edition --with-all-dependencies
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/product-community-edition 2.4.4 -> satisfiable by magento/product-community-edition[2.4.4].
- magento/magento-coding-standard is locked to version 6 and an update of this package was not requested.
- Conclusion: don't install webonyx/graphql-php v14.11.5 (conflict analysis result)
- Conclusion: don't install webonyx/graphql-php v14.11.6 (conflict analysis result)
- magento/product-community-edition 2.4.4 requires magento/framework 103.0.4 -> satisfiable by magento/framework[103.0.4].
- magento/magento-coding-standard 6 requires webonyx/graphql-php >=0.12.6 <1.0 -> satisfiable by webonyx/graphql-php[v0.12.6, ..., v0.13.9].
- You can only install one version of a package, so only one of these can be installed: webonyx/graphql-php[v0.12.6, ..., v0.13.9, v14.11.3, v14.11.4, v14.11.5, v14.11.6].
- magento/framework 103.0.4 requires webonyx/graphql-php ~14.11.3 -> satisfiable by webonyx/graphql-php[v14.11.3, v14.11.4, v14.11.5, v14.11.6].
- Conclusion: don't install webonyx/graphql-php v14.11.4 (conflict analysis result)
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
We tried to satisfy the dependencies manually by hand, but we saw way more errors at the end. Is there any Howto or Tutorial (apart from https://experienceleague.adobe.com/docs/commerce-operations/upgrade-guide/implementation/perform-upgrade.html) about the process or does somebody experienced similar issues? Is it meant to be like this, to resolve dependencies by hand? Its pain and maybe we missed the proper way to do it?
I'm trying to install domain-availability on the Laravel project but this is the result
PS C:\..\workspace v2> composer require helgesverre/domain-availability
Using version ^1.4 for helgesverre/domain-availability
./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
- helgesverre/domain-availability 1.4.0 requires jeremykendall/php-domain-parser ^3.0 -> satisfiable by jeremykendall/php-domain-parser[3.x-dev].
- helgesverre/domain-availability v1.4.1 requires jeremykendall/php-domain-parser ^3.0 -> satisfiable by jeremykendall/php-domain-parser[3.x-dev].
- Conclusion: don't install jeremykendall/php-domain-parser 3.x-dev
- Installation request for helgesverre/domain-availability ^1.4 -> satisfiable by helgesverre/domain-availability[1.4.0, v1.4.1].
Installation failed, reverting ./composer.json to its original content.
PS C:\..\workspace v2>
I'm using this library
https://github.com/HelgeSverre/Domain-Availability
and i activated extension=intl in php.ini file
and install jeremykendall/php-domain-parser using command
composer require jeremykendall/php-domain-parser
How do I solve this problem?
I'm trying to install this https://github.com/antonioribeiro/tracker package on my Laravel 5.2 using command:
composer require pragmarx/tracker
But then I get this error:
Your requirements could not be resolved to an installable set of packages.
Using version ^2.0 for pragmarx/tracker
./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
- Installation request for pragmarx/tracker ^2.0 -> satisfiable by pragmarx/tracker[v2.0.0].
- Conclusion: remove ramsey/uuid 3.4.1
- Conclusion: don't install ramsey/uuid 3.4.1
- pragmarx/tracker v2.0.0 requires ramsey/uuid ~2.8 -> satisfiable by ramsey/uuid[2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0].
- Can only install one of: ramsey/uuid[2.8.0, 3.4.1].
- Can only install one of: ramsey/uuid[2.8.1, 3.4.1].
- Can only install one of: ramsey/uuid[2.8.2, 3.4.1].
- Can only install one of: ramsey/uuid[2.8.3, 3.4.1].
- Can only install one of: ramsey/uuid[2.8.4, 3.4.1].
- Can only install one of: ramsey/uuid[2.9.0, 3.4.1].
- Installation request for ramsey/uuid (locked at 3.4.1) -> satisfiable by ramsey/uuid[3.4.1].
Installation failed, reverting ./composer.json to its original content.
I don't want to break my application. What should I do?
The new package depends on ramsey/uuid, that line also tells you which versions have been found to satisfy this requirement:
pragmarx/tracker v2.0.0 requires ramsey/uuid ~2.8 -> satisfiable by ramsey/uuid[2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0].
It seems that this package is already installed in a newer version, because these lines appears as well:
- Conclusion: remove ramsey/uuid 3.4.1
- Conclusion: don't install ramsey/uuid 3.4.1
Composer sums this up as following:
- Can only install one of: ramsey/uuid[2.8.0, 3.4.1].
Composer cannot install your new package because you have installed ramsey/uuid in a newer version that is incompatible to the required version.
You can try and send a pull request to the maintainer of pragmarx/tracker with the update of ramsey/uuid. Or you can search for a different package that is compatible with your installed packages.
I try install https://github.com/google/google-api-php-client for my php project via composer.
composer.json:
{
"require": {
"Intervention/image": "~2.3.7",
"intervention/image": "^2.3",
"guzzlehttp/guzzle": "^6.2"
}
}
I run this command:
composer require google/apiclient:^2.0
And result:
./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
- google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8].
- Installation request for google/apiclient 2.0 -> satisfiable by google/apiclient[v2.0.0].
- Conclusion: remove guzzlehttp/psr7 1.3.0
- Conclusion: don't install guzzlehttp/psr7 1.3.0
- google/auth v0.8 requires guzzlehttp/psr7 1.2.* -> satisfiable by guzzlehttp/psr7[1.2.0, 1.2.1, 1.2.2, 1.2.3].
- Can only install one of: guzzlehttp/psr7[1.2.0, 1.3.0].
- Can only install one of: guzzlehttp/psr7[1.2.1, 1.3.0].
- Can only install one of: guzzlehttp/psr7[1.2.2, 1.3.0].
- Can only install one of: guzzlehttp/psr7[1.2.3, 1.3.0].
- Installation request for guzzlehttp/psr7 (locked at 1.3.0) -> satisfiable by guzzlehttp/psr7[1.3.0].
Installation failed, reverting ./composer.json to its original content.
Also I installed php composer.phar require guzzlehttp/guzzle before...
I would try removing your project's requirement of guzzlehttp/guzzle and let your Google dependency tell composer what version it wants to pull in. Google's package (for some reason) has a version floor of 1.2 for guzzlehttp/psr7, and composer is complaining that it can't figure out how to satisfy this requirement.
Since your new dependency (the Google package) also requires guzzlehttp/guzzle, you don't need to specifically require it, so I would just remove it and try composer update again.
I'm trying to install Mail client on Lumen, but I get the following error:
mahdi#HP-EliteBook:/var/www/lumen$ composer require illuminate/mail
./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
- Can only install one of: illuminate/support[v5.2.0, v5.1.25].
- Can only install one of: illuminate/support[v5.2.0, v5.1.25].
- Can only install one of: illuminate/support[v5.2.0, v5.1.25].
- illuminate/mail v5.2.0 requires illuminate/support 5.2.* -> satisfiable by illuminate/support[v5.2.0].
- Installation request for illuminate/mail 5.2 -> satisfiable by illuminate/mail[v5.2.0].
- Installation request for illuminate/support == 5.1.25.0 -> satisfiable by illuminate/support[v5.1.25].
Installation failed, reverting ./composer.json to its original content.
How do I install Mail on this micro-framework?
Laravel and all the illuminate components were recently updated to 5.2.* (12/21/2015). Lumen, however, has not been updated and still needs the 5.1.* components.
Since you didn't specify the version of illuminate/mail to install, it tried to install the latest version (5.2). You need to require the 5.1 version instead:
composer require illuminate/mail:5.1.*