Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install "google-maps-provider" because if requirements php ^7.0 -> your php version (8.1.13) #195

Open
Ngozistephen opened this issue May 19, 2023 · 2 comments

Comments

@Ngozistephen
Copy link

General Information

GeocoderLaravel Version:
Laravel Version: "^10.8"
PHP Version: "^8.1"
Operating System and Version: Windows

Issue Description

[I'm trying to install geocoder-php/google-maps-provider, but I can't. I have these errors :
Problem 1
- geocoder-php/common-http[4.0.0, ..., 4.2.0] require php ^7.0 -> your php version (8.1.13) does not satisfy that requirement.
- geocoder-php/google-maps-provider[4.0.0, ..., 4.4.0] require php ^7.0 -> your php version (8.1.13) does not satisfy that requirement.
- geocoder-php/common-http 4.3.0 requires php ^7.2 -> your php version (8.1.13) does not satisfy that requirement.
- geocoder-php/google-maps-provider 4.5.0 requires php ^7.2 -> your php version (8.1.13) does not satisfy that requirement.
- geocoder-php/common-http[4.4.0, ..., 4.5.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.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.
- toin0u/geocoder-laravel 4.6.0 requires geocoder-php/google-maps-provider ^4.0 -> satisfiable by geocoder-php/google-maps-provider[4.0.0, ..., 4.7.1].
- geocoder-php/google-maps-provider[4.6.0, ..., 4.7.1] require geocoder-php/common-http ^4.0 -> satisfiable by geocoder-php/common-http[4.0.0, ..., 4.5.0].
- Root composer.json requires toin0u/geocoder-laravel ^4.6 -> satisfiable by toin0u/geocoder-laravel[4.6.0].

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 toin0u/geocoder-laravel:*" to figure out if any version is installable, or "composer require toin0u/geocoder-laravel:^2.1" if you know which you need.]

Steps to Replicate

[please provide a list of specific steps that will allow me to replicate this issue]

Stack Trace

[if an error is occuring, provide the complete stack trace here]

@m15studio
Copy link

I have same issue with MacOS and
Laravel Version 10.18.0
PHP Version 8.1.11
Composer Version 2.4.3

Errors retrieved

Your requirements could not be resolved to an installable set of packages.

Problem 1
- geocoder-php/google-maps-provider[4.6.0, ..., 4.7.1] require geocoder-php/common-http ^4.0 -> satisfiable by geocoder-php/common-http[4.0.0, ..., 4.5.0].
- toin0u/geocoder-laravel[4.5.0, ..., 4.5.1] require illuminate/cache ^5.0|^6.0|^7.0|^8.0|^9.0 -> found illuminate/cache[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
- geocoder-php/common-http[4.0.0, ..., 4.2.0] require php ^7.0 -> your php version (8.1.11) does not satisfy that requirement.
- geocoder-php/google-maps-provider[4.0.0, ..., 4.4.0] require php ^7.0 -> your php version (8.1.11) does not satisfy that requirement.
- geocoder-php/common-http 4.3.0 requires php ^7.2 -> your php version (8.1.11) does not satisfy that requirement.
- geocoder-php/google-maps-provider 4.5.0 requires php ^7.2 -> your php version (8.1.11) does not satisfy that requirement.
- geocoder-php/common-http[4.4.0, ..., 4.5.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.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.
- toin0u/geocoder-laravel 4.6.0 requires geocoder-php/google-maps-provider ^4.0 -> satisfiable by geocoder-php/google-maps-provider[4.0.0, ..., 4.7.1].
- Root composer.json requires toin0u/geocoder-laravel ^4.5 -> satisfiable by toin0u/geocoder-laravel[4.5.0, 4.5.1, 4.6.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@m15studio
Copy link

I resolved problem by delete composer.lock file and after did it I launch composer update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants