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

Cannot install library using composer #971

Closed
manojmilani123 opened this issue Jun 9, 2016 · 7 comments
Closed

Cannot install library using composer #971

manojmilani123 opened this issue Jun 9, 2016 · 7 comments
Assignees

Comments

@manojmilani123
Copy link

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

@bshaffer
Copy link
Contributor

bshaffer commented Jun 9, 2016

@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
Copy link
Contributor

bshaffer commented Jun 9, 2016

see this duplicate issue

@bshaffer bshaffer closed this as completed Jun 9, 2016
@arafathussein
Copy link

any solution for this issue?

@bshaffer
Copy link
Contributor

bshaffer commented Feb 8, 2017

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.

@anmolio
Copy link

anmolio commented Nov 7, 2017

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

@mediatomcat
Copy link

Did you ever find a solution?

@ipsjolly
Copy link

  • Install Composer (PHP Package manager like NPM).
  • Create a new folder "GoogleAPI".
  • Create a new file composer.json with the following content.
{
  "require": {
    "google/apiclient": "^2.0"
  }
}
  • Open CMD from this folder (GoogleAPI)
  • Run following command in CMD
    composer update

Then it will start loading files....

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

6 participants