composer issues when updating - composer-php

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

Related

Installation issue with guzzlehttp/guzzle version

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.

Problem of Laravel Framework version for using the package mailjet/laravel-mailjet

I've a problem for using mailjet/laravel-mailjet, it seems a problem of versions.
I was using Laravel Framework 5.6.33 and i got
Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].
i've change my composer.json and now, i'm using Laravel Framework 5.6.39 but i've still the same problem
$ php artisan --version
Laravel Framework 5.6.39
There is the answer when i try to install mailjet/laravel-mailjet
$ composer require mailjet/laravel-mailjet
Using version ^1.1 for mailjet/laravel-mailjet
./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: laravel/framework[v5.6.39, 5.4.x-dev].
- Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
- Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
- mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.* -> satisfiable by laravel/framework[5.4.x-dev].
- Installation request for mailjet/laravel-mailjet ^1.1 -> satisfiable by mailjet/laravel-mailjet[1.1.0].
- Installation request for laravel/framework 5.6.39 -> satisfiable by laravel/framework[v5.6.39].
the 4th line explains it all.
mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.*
so, you can't use v5.6.39, only 5.4.*

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

Magento 2 composer not working

I am trying install a lenguage package in Magento 2. I run composer require eusonlito/magento2-language-es_es, but composer show me a problem:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.0.5 for eusonlito/magento2-language-es_es
./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 eusonlito/magento2-language-es_es ^0.0.5 -> satisfiable by eusonlito/magento2-language-es_es[0.0.5].
- Conclusion: remove magento/framework 100.1.2
- Conclusion: don't install magento/framework 100.1.2
- eusonlito/magento2-language-es_es 0.0.5 requires magento/framework 100.0.* -> satisfiable by magento/framework[100.0.10, 100.0.11, 100.0.12, 100.0.13, 100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8, 100.0.9].
- Can only install one of: magento/framework[100.1.2, 100.0.10].
- Can only install one of: magento/framework[100.1.2, 100.0.11].
- Can only install one of: magento/framework[100.1.2, 100.0.12].
- Can only install one of: magento/framework[100.1.2, 100.0.13].
- Can only install one of: magento/framework[100.1.2, 100.0.2].
- Can only install one of: magento/framework[100.1.2, 100.0.3].
- Can only install one of: magento/framework[100.1.2, 100.0.4].
- Can only install one of: magento/framework[100.1.2, 100.0.5].
- Can only install one of: magento/framework[100.1.2, 100.0.6].
- Can only install one of: magento/framework[100.1.2, 100.0.7].
- Can only install one of: magento/framework[100.1.2, 100.0.8].
- Can only install one of: magento/framework[100.1.2, 100.0.9].
- Installation request for magento/framework (locked at 100.1.2) -> satisfiable by magento/framework[100.1.2].
Installation failed, reverting ./composer.json to its original content.
How I can solve this problem?
Thanks!
Installation of eusonlito/magento2-language-es_es create version problems (with magento/framework in this case). Here, your magento/framework version is too high for magento2-language-es_es. Try to see which dependencies magento2-language-es_es needs and change the version tag.

Resources