我正在尝试安装doctrine-migrations-bundle
而我正在获取您的要求无法解析为可安装的软件包,这是日志
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: remove symfony/symfony 2.1.x-dev
- Conclusion: don't install symfony/symfony 2.1.x-dev
- Conclusion: don't install symfony/symfony v2.1.9
- Conclusion: don't install symfony/symfony v2.1.8
- Conclusion: don't install symfony/symfony v2.1.7
- Conclusion: don't install symfony/symfony v2.1.6
- Conclusion: don't install symfony/symfony v2.1.5
- Conclusion: don't install symfony/symfony v2.1.4
- Conclusion: don't install symfony/symfony v2.1.3
- Conclusion: don't install symfony/symfony v2.1.2
- Conclusion: don't install symfony/symfony v2.1.1
- Conclusion: don't install symfony/symfony v2.1.0
- Conclusion: don't install symfony/symfony v2.1.0-RC2
- Conclusion: don't install symfony/symfony v2.1.0-RC1
- Conclusion: don't install symfony/symfony v2.1.0-BETA4
- Installation request for doctrine/doctrine-migrations-bundle dev-master -> satisfiable by doctrine/doctrine-migrations-bundle dev-master.
- Conclusion: don't install symfony/symfony v2.1.0-BETA3
- Installation request for symfony/config dev-master -> satisfiable by symfony/config dev-master, symfony/symfony dev-master, symfony/symfony 2.3.x-dev.
- Conclusion: don't install symfony/symfony v2.1.0-BETA2
- doctrine/doctrine-migrations-bundle dev-master requires symfony/framework-bundle >=2.1.0,<2.3-dev -> satisfiable by symfony/symfony 2.1.x-dev, symfony/symfony 2.1.x-dev, symfony/symfony 2.2.x-dev, symfony/symfony v2.1.0, symfony/symfony v2.1.1, symfony/symfony v2.1.2, symfony/symfony v2.1.3, symfony/symfony v2.1.4, symfony/symfony v2.1.5, symfony/symfony v2.1.6, symfony/symfony v2.1.7, symfony/symfony v2.1.8, symfony/symfony v2.1.9, symfony/symfony v2.2.0, symfony/symfony v2.2.0-BETA1, symfony/symfony v2.2.0-BETA2, symfony/symfony v2.2.0-RC1, symfony/symfony v2.2.0-RC2, symfony/symfony v2.2.0-RC3, symfony/symfony v2.2.1, symfony/framework-bundle 2.1.x-dev, symfony/framework-bundle 2.2.x-dev, symfony/framework-bundle v2.1.0, symfony/framework-bundle v2.1.1, symfony/framework-bundle v2.1.2, symfony/framework-bundle v2.1.3, symfony/framework-bundle v2.1.4, symfony/framework-bundle v2.1.5, symfony/framework-bundle v2.1.6, symfony/framework-bundle v2.1.7, symfony/framework-bundle v2.1.8, symfony/framework-bundle v2.1.9, symfony/framework-bundle v2.2.0, symfony/framework-bundle v2.2.0-BETA1, symfony/framework-bundle v2.2.0-BETA2, symfony/framework-bundle v2.2.0-RC1, symfony/framework-bundle v2.2.0-RC2, symfony/framework-bundle v2.2.0-RC3, symfony/framework-bundle v2.2.1.
- Can only install one of: symfony/symfony v2.1.0-BETA1, symfony/symfony 2.2.x-dev.
- Can only install one of: symfony/symfony v2.2.0, symfony/symfony v2.1.0-BETA1.
- Can only install one of: symfony/symfony v2.2.0-BETA1, symfony/symfony v2.1.0-BETA1.
- Can only install one of: symfony/symfony v2.2.0-BETA2, symfony/symfony v2.1.0-BETA1.
- Can only install one of: symfony/symfony v2.2.0-RC1, symfony/symfony v2.1.0-BETA1.
- Can only install one of: symfony/symfony v2.2.0-RC2, symfony/symfony v2.1.0-BETA1.
- Can only install one of: symfony/symfony v2.2.0-RC3, symfony/symfony v2.1.0-BETA1.
- Can only install one of: symfony/symfony v2.2.1, symfony/symfony v2.1.0-BETA1.
- don't install symfony/framework-bundle 2.2.x-dev|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.0|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.1|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle 2.1.x-dev|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.0|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.1|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.2|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.3|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.4|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.5|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.6|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.7|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.8|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.1.9|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.0-BETA1|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.0-BETA2|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.0-RC1|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.0-RC2|don't install symfony/symfony v2.1.0-BETA1
- don't install symfony/framework-bundle v2.2.0-RC3|don't install symfony/symfony v2.1.0-BETA1
- Installation request for symfony/symfony 2.1.* -> satisfiable by symfony/symfony 2.1.x-dev, symfony/symfony v2.1.0, symfony/symfony v2.1.0-BETA1, symfony/symfony v2.1.0-BETA2, symfony/symfony v2.1.0-BETA3, symfony/symfony v2.1.0-BETA4, symfony/symfony v2.1.0-RC1, symfony/symfony v2.1.0-RC2, symfony/symfony v2.1.1, symfony/symfony v2.1.2, symfony/symfony v2.1.3, symfony/symfony v2.1.4, symfony/symfony v2.1.5, symfony/symfony v2.1.6, symfony/symfony v2.1.7, symfony/symfony v2.1.8, symfony/symfony v2.1.9.
这是我的composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {
"": "src/"
}
},
"require": {
"php": ">=5.3.2",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.0.*",
"doctrine/doctrine-migrations-bundle": "dev-master",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"sonata-project/user-bundle": "dev-master",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"isoft/mssql-bundle": "master-dev",
"sonata-project/cache-bundle": "dev-master",
"symfony/config": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "symlink"
}
}
我从未理解composer
日志。
有人可以帮我解读错误,这样我就可以看到我做错了吗?
答案 0 :(得分:9)
今天我遇到了类似的问题,试图安装doctrine/doctrine-migrations-bundle
。我会在这里留下我的答案,因为虽然解决方案很简单,但我还没有在其他地方找到它。
就像我们需要doctrine/orm
来doctrine/doctrine-bundle
一样,我们需要 doctrine/migrations
来doctrine/doctrine-migrations-bundle
。
因此,请将其也包含在composer.json
:
{
"require": {
"doctrine/migrations": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master"
}
}
答案 1 :(得分:0)
您不能要求symfony/config
dev-master
和 symfony/symfony
2.1
,因为主程序包会替换其他程序包。如果您将symfony/config
更改为2.1.*
,则可能会更好。
答案 2 :(得分:0)
我现在能够使用packagist
解决此类错误