Installation issue with guzzlehttp/guzzle version - laravel

I'm trying to install the package erusso7/redsys-rest but it shows this error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: guzzlehttp/guzzle[7.4.3, 6.5.x-dev].
- Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.4.3].
- Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.4.3].
- erusso7/redsys-rest 0.1.2 requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- Installation request for erusso7/redsys-rest ^0.1.2 -> satisfiable by erusso7/redsys-rest[0.1.2].
- Installation request for guzzlehttp/guzzle (locked at 7.4.3, required as ^7.0.1) -> satisfiable by guzzlehttp/guzzle[7.4.3].
Installation failed, reverting ./composer.json to its original content.
I've tried all the solutions in the other questions related to this topic but nothing seems to work.
I'm using Laravel/Backpack and I think it uses guzzle too and that may be causing the issues with the versions, any help please? I can give more info about my composer files if needed. Thank you.

Related

silverstripe installation error "silverstripe/vendor-plugin 1.3.1 requires composer-plugin-api ^1.1 -> no matching package found"

I am trying to install silverstripe but i am getting the following error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- silverstripe/vendor-plugin 1.3.1 requires composer-plugin-api ^1.1 -> no matching package found.
- silverstripe/vendor-plugin 1.3.1 requires composer-plugin-api ^1.1 -> no matching package found.
- Installation request for silverstripe/vendor-plugin 1.3.1 -> satisfiable by silverstripe/vendor-plugin[1.3.1].
please help to resolve it.
It's fairly likely that you're using an older version of composer.
Update composer and try again:
composer selfupdate
composer install

Composer Google API Download Failed

I tried to download google api using composer to a legacy code but, the following error appeared:
composer require google/apiclient:^2.0
./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 google/apiclient 2.0 -> satisfiable by google/apiclient[v2.0.0].
- google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8].
- Conclusion: don't install guzzlehttp/psr7 1.4.2
- 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.4.2].
- Can only install one of: guzzlehttp/psr7[1.2.1, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.2.2, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.2.3, 1.4.2].
- Installation request for guzzlehttp/psr7 (locked at 1.4.2) -> satisfiable by guzzlehttp/psr7[1.4.2].
Installation failed, reverting ./composer.json to its original content.
What should I do?
Try removing vendor/google and then run composer install again, this worked for me.
Can only install one of: guzzlehttp/psr7[1.2.3, 1.4.2].
Your dependencies led to confusion of two different major versions of the package, but only one can be installed.
The locked at 1.4.2 message means this package has been already installed as per your composer.lock file, and you're trying to install different version not compatible with your existing criteria.
$ composer show -a google/auth | grep psr7
guzzlehttp/psr7 ~1.2
You can check which existing package depends on the locked version by checking the dependency tree:
composer show -t
In some cases, removing composer.lock may help.
Otherwise, to see why (from where) the package is referenced, run:
composer why guzzlehttp/psr7 -t
See also: How to resolve a "Can only install one of:" conflict?
I finally found a solution for me, it works just removing composer.lock!!

installation failed reverting ./composer.json to its original content. laravel #1

While installing nexmo/laravel I am getting following error.
C:\xampp\htdocs\myLaravel1>composer require nexmo/laravel 1.0.0-beta3
Problem 1
- Can only install one of: nexmo/client[1.0.0-beta3, 1.0.0-beta4].
- Can only install one of: nexmo/client[1.0.0-beta4, 1.0.0-beta3].
- Can only install one of: nexmo/client[1.0.0-beta3, 1.0.0-beta4].
- nexmo/laravel 1.0.0-beta3 requires nexmo/client 1.0.0-beta3 -> satisfiable
by nexmo/client[1.0.0-beta3].
- Installation request for nexmo/laravel 1.0.0-beta3 -> satisfiable by nexmo
/laravel[1.0.0-beta3].
- Installation request for nexmo/client (locked at 1.0.0-beta4, required as
#beta) -> satisfiable by nexmo/client[1.0.0-beta4].
Thank you in advance.
To install the specific version you need to use package_name:version syntax
composer require nexmo/laravel:1.0.0-beta3
Apart from that nexmo/client is locked at version 1.0.0-beta4. So you need to that version. So try this instead :
composer require nexmo/laravel:1.0.0-beta4

Error installing package

good evening!
I am trying to install a package, but it is displaying the following error:
Problem 1
- Installation request for r0bdiablo/laravel5-phumbor ^0.1.0 -> satisfiable by r0bdiablo/laravel5-phumbor[0.1.0].
- r0bdiablo/laravel5-phumbor 0.1.0 requires 99designs/phumbor dev-master -> satisfiable by 99designs/phumbor[dev-master] but these conflict with your requirements or minimum-stability.
Image with error
He informs that the problem is with a dependency. But I have no idea how to solve the problem. can anybody help me?
composer require r0bdiablo/laravel5-phumbor "dev-master"

composer issues when updating

I've added "ornicar/apc-bundle": "1.0.*" to my composer.json in order to install it, but I'm getting this error:
composer.phar update ornicar/apc-bundle
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: nelmio/alice[1.5.0, 1.6.x-dev].
- Can only install one of: nelmio/alice[1.5.1, 1.6.x-dev].
- Can only install one of: nelmio/alice[1.5.2, 1.6.x-dev].
- Installation request for nelmio/alice == 1.6.9999999.9999999-dev -> satisfiable by nelmio/alice[1.6.x-dev].
- Installation request for nelmio/alice 1.5.*#dev -> satisfiable by nelmio/alice[1.5.0, 1.5.1, 1.5.2].
Any ideas?
The Problem's been solved here.
https://github.com/composer/composer/issues/3198

Resources