google-api-php-client icon indicating copy to clipboard operation
google-api-php-client copied to clipboard

Cannot install library using composer

Open manojmilani123 opened this issue 10 years ago • 6 comments

Hi

I am trying to install this package/library using composer but it gives me below error:

Problem 1 - The requested package google/apiclient No version set (parsed as 1.0.0) is satisfiable by google/apiclient[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability. Problem 2 - 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] but these conflict with your requirements or minimum-stability.

Any fix?

Thanks, Manoj M

manojmilani123 avatar Jun 09 '16 14:06 manojmilani123

@manojmilani123 have you tried adding this dependency directly to your composer file and running composer update? i.e.:

{
  "require": {
    "some-depencdency": "...",
    "google/apiclient": "^2.0",
  }
}

And now run composer update. This should install the library successfully.

bshaffer avatar Jun 09 '16 15:06 bshaffer

see this duplicate issue

bshaffer avatar Jun 09 '16 17:06 bshaffer

any solution for this issue?

arafathussein avatar Feb 08 '17 04:02 arafathussein

Try adding "google/apiclient": "^2.0" directly to composer.json and running composer update and you'll have a better time.

Composer won't update your existing deps unless you run composer update, so it behaves differently when you simply use composer require, and in this case, throws an error.

bshaffer avatar Feb 08 '17 16:02 bshaffer

@bshaffer : Still facing the same issue ! What to do ?

anmolio avatar Nov 07 '17 22:11 anmolio

Did you ever find a solution?

mediatomcat avatar Jul 02 '18 19:07 mediatomcat