When I'm doing composer require guzzlehttp/guzzle I always get:
vagrant@precise64:$ composer require guzzlehttp/guzzle
Using version ~5.0@dev for guzzlehttp/guzzle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install guzzlehttp/guzzle 5.2.0
- Conclusion: don't install guzzlehttp/guzzle 5.1.0
- Conclusion: don't install guzzlehttp/guzzle 5.0.x-dev
- Conclusion: don't install guzzlehttp/guzzle 5.0.3
- Conclusion: don't install guzzlehttp/guzzle 5.0.2
- Conclusion: don't install guzzlehttp/guzzle 5.0.1
- Installation request for guzzlehttp/guzzle ~5.0@dev -> satisfiable by guzzlehttp/guzzle[5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.0.x-dev].
- Conclusion: remove guzzlehttp/streams 1.0.0-rc.1
- guzzlehttp/guzzle 5.0.0 requires guzzlehttp/ringphp ~1.0 -> satisfiable by guzzlehttp/ringphp[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.x-dev].
- guzzlehttp/ringphp 1.0.0 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.1 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.2 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.3 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.4 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.5 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.x-dev requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- Can only install one of: guzzlehttp/streams[3.0.0, 1.0.0-rc.1].
- Can only install one of: guzzlehttp/streams[3.0.x-dev, 1.0.0-rc.1].
- Installation request for guzzlehttp/streams == 1.0.0.0-RC1 -> satisfiable by guzzlehttp/streams[1.0.0-rc.1].
Installation failed, reverting ./composer.json to its original content.
I tried to install dev-master, 5.1.0, 5.0.3 and it's always the same. Is it normal? I'm having this on multiple configurations.
Thanks
Who is setting guzzlehttp/streams to 1.0.0-rc.1?
Something weird happened:
I composer remove'd guzzle then it successfully installed it.
So I saw it was version 4.1.2 and I manually added it into my composer.json.
Then I did composer update and it updated guzzlehttp/streams?!
Now it works nicely though I wonder wtf happened hehe
Thanks anyway!
Here's the logs:
vagrant@precise64:$ composer require guzzlehttp/guzzle 5.2.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for guzzlehttp/guzzle 5.2.0 -> satisfiable by guzzlehttp/guzzle[5.2.0].
- Conclusion: remove guzzlehttp/streams 1.0.0-rc.1
- guzzlehttp/guzzle 5.2.0 requires guzzlehttp/ringphp ~1.0 -> satisfiable by guzzlehttp/ringphp[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.x-dev].
- guzzlehttp/ringphp 1.0.0 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.1 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.2 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.3 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.4 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.5 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- guzzlehttp/ringphp 1.0.x-dev requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0, 3.0.x-dev].
- Can only install one of: guzzlehttp/streams[3.0.0, 1.0.0-rc.1].
- Can only install one of: guzzlehttp/streams[3.0.x-dev, 1.0.0-rc.1].
- Installation request for guzzlehttp/streams == 1.0.0.0-RC1 -> satisfiable by guzzlehttp/streams[1.0.0-rc.1].
Installation failed, reverting ./composer.json to its original content.
vagrant@precise64:$ composer remove guzzlehttp/guzzle
guzzlehttp/guzzle is not required in your composer.json and has not been removed
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing guzzlehttp/guzzle (4.0.0-rc.1)
- Installing guzzlehttp/guzzle (4.1.2)
Downloading: 100%
Writing lock file
Generating autoload files
A new helper file was written to _ide_helper.php
Generating optimized class loader
vagrant@precise64:$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing guzzlehttp/streams (1.0.0-rc.1)
- Installing guzzlehttp/streams (1.5.1)
Downloading: 100%
Writing lock file
Generating autoload files
A new helper file was written to _ide_helper.php
Generating optimized class loader
vagrant@precise64:$
Weird. Glad it's working now.
Don't require a specific version, use a version constraint.
Most helpful comment
Don't require a specific version, use a version constraint.