Glebsky / laravel-lang-generator

Searches for multilingual phrases in Laravel project and automatically generates language files for you.
15 stars 5 forks source link

Installation error #7

Open emtiazzahid opened 2 months ago

emtiazzahid commented 2 months ago

Error


Using version ^1.0 for glebsky/laravel-lang-generator
./composer.json has been updated
Running composer update glebsky/laravel-lang-generator
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - outhebox/laravel-translations[1.1.0, ..., 1.1.1] require brick/varexporter ^0.4.0 -> satisfiable by brick/varexporter[0.4.0].  
    - brick/varexporter 0.4.0 requires nikic/php-parser ^4.0 -> found nikic/php-parser[v4.0.0, ..., v4.19.1] but the package is fixed to v5.0.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires outhebox/laravel-translations ^1.1 -> satisfiable by outhebox/laravel-translations[1.1.0, 1.1.1].  

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require glebsky/laravel-lang-generator:*" to figure out if any version is installable, or "composer require glebsky/laravel-lang-generator:^2.1" if you know which you need.
Glebsky commented 2 months ago

You have issue with outhebox/laravel-translations library. This library requires suitable versions of others components. laravel-lang-generator don't uses such libraries (brick/varexporter , nikic/php-parser)

emtiazzahid commented 2 months ago

In my project or any composer package using brick/varexporter and nikic/php-parser required byphpunit/php-code-coverage and phpunit/php-code-coverage required by phpunit/phpunit 11.1.2

so I think nikic/php-parser is pretty much important to have

evarioooo commented 1 month ago

Your problem has nothing to do with

glebsky/laravel-lang-generator

but is caused by another dependency.