M
M
Maxim Timofeev2017-09-17 13:30:53
Composer
Maxim Timofeev, 2017-09-17 13:30:53

What is the command to see the package dependency?

Tried to put composer require google/apiclient:^2.0 but it swears a lot on guzzlehttp/psr7 1.4.x-dev

full text

Problem 1
- google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8].
- Installation request for google/apiclient 2.0 -> satisfiable by google/apiclient[v2.0.0].
- Conclusion: remove guzzlehttp/psr7 1.4.x-dev
- Conclusion: don't install guzzlehttp/psr7 1.4.x-dev
- google/auth v0.8 requires guzzlehttp/psr7 1.2.* -> satisfiable by guzzlehttp/psr7[1.2.0, 1.2.1, 1.2.2, 1.2.3].
- Can only install one of: guzzlehttp/psr7[1.2.0, 1.4.x-dev].
- Can only install one of: guzzlehttp/psr7[1.2.1, 1.4.x-dev].
- Can only install one of: guzzlehttp/psr7[1.2.2, 1.4.x-dev].
- Can only install one of: guzzlehttp/psr7[1.2.3, 1.4.x-dev].
- Installation request for guzzlehttp/psr7 (locked at 1.4.x-dev) -> satisfiable by guzzlehttp/psr7[1.4.x-dev].

Did I understand correctly that google/apiclient 2.0 pulls it? If not, then in fact there is probably a team that will show what pulled him up. To decide what to do with it.
It's a little embarrassing that Google is in conflict with itself. It's somehow strange, so I ask for help, with composer on you for now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
voronkovich, 2017-09-18
@webinar

composer show google/apiclient
Below are the dependencies.
But in my opinion you need grep:
grep guzzlehttp/psr7 $(find -name composer.json)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question