Magento 2 composer not working - magento

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.

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.

Error while trying to install websocket in laravel using composer require beyondcode/laravel-websockets [duplicate]

This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed last year.
I'm facing a composer error while installing a websocket in my laravel project. My intention is to install this websocket and use it for real-time notifications,
but I'm facing an error after issuing an installation command. Below here is what I'm facing:
Problem 1
- Conclusion: don't install beyondcode/laravel-websockets 1.12.0
- Conclusion: remove guzzlehttp/psr7 2.1.0
- Installation request for beyondcode/laravel-websockets ^1.12 -> satisfiable by beyondcode/laravel-websockets[1.12.0, 1.x-dev].
- Conclusion: don't install guzzlehttp/psr7 2.1.0
- beyondcode/laravel-websockets 1.x-dev requires guzzlehttp/psr7 ^1.5 -> satisfiable by guzzlehttp/psr7[1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.x-dev].
- Can only install one of: guzzlehttp/psr7[1.7.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.1, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.2, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.3, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.x-dev, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.5.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.5.1, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.5.2, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.6.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.6.1, 2.1.0].
- Installation request for guzzlehttp/psr7 (locked at 2.1.0) -> satisfiable by guzzlehttp/psr7[2.1.0].
Installation failed, reverting ./composer.json to its original content.
Can anyone help me to resolve this issue please..
Downgrade the guzzlehttp/guzzle version
Do changes in composer.json
These are according to Laravel 8 and PHP 8.0
Try downgrading or upgrading until it starts work.
"php": "^7.3|^8.0",
"beyondcode/laravel-websockets": "^1.12"
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.40",

Installation lighthouse in laravel 5.7

Describe the bug
the lighthouse does not install on laravel 5.7
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
- Conclusion: don't install nuwave/lighthouse v2.6.4
- Conclusion: don't install nuwave/lighthouse v2.6.3
- Conclusion: don't install nuwave/lighthouse v2.6.2
- Conclusion: don't install nuwave/lighthouse v2.6.1
- Conclusion: don't install nuwave/lighthouse v2.6.0
- Conclusion: remove webonyx/graphql-php v0.13.1
- Installation request for nuwave/lighthouse ^2.6
-> satisfiable by nuwave/lighthouse[2.x-dev, v2.6.0, v2.6.1, v2.6.2, v2.6.3, v2.6.4].
- Conclusion: don't install webonyx/graphql-php v0.13.1
- nuwave/lighthouse 2.x-dev requires webonyx/graphql-php ^0.12
-> satisfiable by webonyx/graphql-php[0.12.x-dev, v0.12.0, v0.12.1, v0.12.2, v0.12.3, v0.12.4, v0.12.5, v0.12.6].
- Can only install one of: webonyx/graphql-php[0.12.x-dev, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.0, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.1, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.2, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.3, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.4, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.5, v0.13.1].
- Can only install one of: webonyx/graphql-php[v0.12.6, v0.13.1].
- Installation request for webonyx/graphql-php (locked at v0.13.1)
-> satisfiable by webonyx/graphql-php[v0.13.1].
If you have an existing Laravel 5.7 project, all you really need is two steps:
Install via composer require nuwave/lighthouse
Define your schema in graphql/schema.graphql
According to nuwave/lighthouse package you need to php: >= 7.1
Apart from this, you also need to complete the package's requirement in your project

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!!

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