Open Stephan-MC opened 2 years ago
+1
Using version ^0.7.0 for pragmarx/countries-laravel
./composer.json has been updated
Running composer update pragmarx/countries-laravel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires pragmarx/countries-laravel ^0.7.0 -> satisfiable by pragmarx/countries-laravel[v0.7.0].
- pragmarx/countries-laravel v0.7.0 requires psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.0 (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.
there is an issue when installing in laravel10
Problem 1
- pragmarx/countries[v0.1.0, ..., v0.7.2] require psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.0 (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.
- pragmarx/countries[v0.5.0, ..., v0.5.2] require pragmarx/coollection >=5.5 -> found pragmarx/coollection[dev-master, v0.1.0, ..., v0.8.1, 1.0.x-dev (a
lias of dev-master)] but it does not match the constraint.
- pragmarx/countries[v0.8.0, ..., v0.8.1] require psr/simple-cache ^2.0 -> found psr/simple-cache[2.0.0] but the package is fixed to 3.0.0 (lock file ve
rsion) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- pragmarx/countries v0.8.2 requires psr/simple-cache ^1.0|^2.0 -> found psr/simple-cache[1.0.0, 1.0.1, 2.0.0] but the package is fixed to 3.0.0 (lock f
ile 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 pragmarx/countries * -> satisfiable by pragmarx/countries[v0.1.0, ..., v0.8.2].
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 pragmarx/countries:*" to figure out if any version
is installable, or "composer require pragmarx/countries:^2.1" if you know which you need.
same here
Install with this on command line
composer require pragmarx/countries-laravel:* -W
Thanks @alpha414-bot, that works, but it's not really a solution as Laravel installs psr/simple-cache:3.0.0 for a reason (1.0.2 doesn't enforce return types, which may cause issues if not properly handled elsewhere). While this works for now, it would be nice to see an update of this wonderful countries package to support psr/simple-cache:3.0.0. Can't be that much work, since nothing breaking has changed I think.
Please how can i install PragmaRX/countries-laravel in laravel 9. Love this pack a lot. I don't think there is any package better than this