这是我的 composer.json 文件:
{
"name": "lorem-ipsum",
"description": "Lorem Ipsum",
"minimum-stability": "dev",
"require": {
"php": ">=5.4",
"symfony/console": ">=2.0.0,<2.2.0-dev",
"symfony/config": ">=2.0.0,<2.2.0-dev",
"symfony/dependency-injection": ">=2.0.0,<2.2.0-dev",
"symfony/event-dispatcher": ">=2.0.0,<2.2.0-dev",
"symfony/translation": ">=2.0.0,<2.2.0-dev",
"symfony/yaml": ">=2.0.0,<2.2.0-dev",
"symfony/finder": ">=2.0.0,<2.2.0-dev",
"zendframework/zendframework": "2.*",
"doctrine/doctrine-module": "dev-master",
"doctrine/doctrine-orm-module": "0.*",
"gedmo/doctrine-extensions": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"behat/behat": "2.4.*@stable",
"behat/mink": "1.4@stable",
"behat/mink-goutte-driver": "*",
"symfony/browser-kit": "2.1.*",
"symfony/css-selector": "2.1.*",
"symfony/dom-crawler": "2.1.*",
"symfony/process": "2.1.*",
"guzzle/http": "2.8.*",
"behat/mink-sahi-driver": "*"
},
"autoload": {
"psr-0": {
"Behat\\Behat": "src/"
}
}
}
当我做:
php composer.phar update --dev
我得到:
使用包信息加载作曲家存储库更新依赖项您的需求无法解析为可安装的包集。
Problem 1
- Conclusion: remove guzzle/parser v2.8.8
- Conclusion: don't install guzzle/parser v2.8.8
- fabpot/goutte 1.0.x-dev requires guzzle/guzzle 3.0.* -> satisfiable by guzzle/guzzle v3.0.0, guzzle/guzzle v3.0.1, guzzle/guzzle v3.0.2, guzzle/guzzle v3.0.3, guzzle/guzzle v3.0.4, guzzle/guzzle v3.0.5.
- fabpot/goutte 1.0.x-dev requires guzzle/guzzle 3.0.* -> satisfiable by guzzle/guzzle v3.0.0, guzzle/guzzle v3.0.1, guzzle/guzzle v3.0.2, guzzle/guzzle v3.0.3, guzzle/guzzle v3.0.4, guzzle/guzzle v3.0.5.
- Can only install one of: guzzle/guzzle v3.0.0, guzzle/guzzle v2.8.8.
- Can only install one of: guzzle/guzzle v3.0.1, guzzle/guzzle v2.8.8.
- Can only install one of: guzzle/guzzle v3.0.2, guzzle/guzzle v2.8.8.
- Can only install one of: guzzle/guzzle v3.0.3, guzzle/guzzle v2.8.8.
- Can only install one of: guzzle/guzzle v3.0.4, guzzle/guzzle v2.8.8.
- Can only install one of: guzzle/guzzle v3.0.5, guzzle/guzzle v2.8.8.
- Installation request for guzzle/parser v2.8.8 -> satisfiable by guzzle/guzzle v2.8.8, guzzle/parser v2.8.8.
- Installation request for fabpot/goutte 1.0.x-dev -> satisfiable by fabpot/goutte 1.0.x-dev.
几天前没有发生这种情况,我已经使用这个 composer.json 文件几个星期了,它总是安装好。