今天早上,当我试图运行作曲家更新时,我收到以下错误:
我该如何修复错误?
问题1 - 请求的包sonata-project / admin-bundle~2.4@dev不能用于 问题2 - sonata-project / page-bundle dev-master需要sonata-project / admin-bundle~2.4 - >找不到匹配的包。 - sonata-project / page-bundle dev-master需要sonata-project / admin-bundle~2.4 - >找不到匹配的包。 - sonata-project / page-bundle dev-master的安装请求 - > by sonata-project / page-bundle [dev-master]。
潜在原因: - 包名中的拼写错误 - 根据您的最小稳定性设置,包装没有足够稳定的版本。
"minimum-stability": "dev",
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.4",
"twig/twig": "1.24.0",
"twig/extensions": "~1.3",
"symfony/assetic-bundle": "dev-master",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"leafo/lessphp": "*",
"twitter/bootstrap": "*",
"mremi/contact-bundle": "dev-master",
"symfony/twig-bridge": "2.3.*",
"symfony-cmf/routing-bundle": "~1.1",
"genemu/form-bundle": "2.2.*",
"components/jquery": "1.9.*",
"components/jqueryui": "1.11.4",
"friendsofsymfony/user-bundle": "~1.3",
"hwi/oauth-bundle": "0.4.*@dev",
"knplabs/gaufrette": "~0.1.6",
"knplabs/knp-menu-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/admin-bundle": "~2.4@dev",
"sonata-project/page-bundle": "dev-master",
"sonata-project/formatter-bundle": "dev-master",
"sonata-project/user-bundle": "2.3.*@dev",
"sonata-project/block-bundle": "2.3.9",
"sonata-project/datagrid-bundle": "2.2.*@dev",
"sonata-project/core-bundle": "~2.2@dev",
"sonata-project/notification-bundle": "2.3.*@dev",
"sonata-project/seo-bundle": "2.0.*@dev",
"sonata-project/cache-bundle": "2.2.*@dev",
"sonata-project/easy-extends-bundle": "~2.1",
"sonata-project/comment-bundle": "~2.2@dev",
"sonata-project/ecommerce": "dev-develop",
"zendframework/zend-crypt" : "dev-master",
"white-october/pagerfanta-bundle": "dev-master",
"pagerfanta/pagerfanta": "1.0.*@dev",
"knplabs/knp-paginator-bundle": "dev-master",
"jms/security-extra-bundle": "dev-master",
"doctrine/doctrine-fixtures-bundle": "2.3.*",
"ensepar/html2pdf-bundle" : "dev-master",
"lexxpavlov/pagebundle": "~1.0",
"stof/doctrine-extensions-bundle": "dev-master",
"egeloen/ckeditor-bundle": "3.0",
"stfalcon/page-bundle": "*",
"stephanecollot/datetimepicker-bundle": "dev-master",
"guzzlehttp/guzzle": "6.2.x-dev",
"omnipay/paypal": "~2.0",
"jms/di-extra-bundle": "1.7.0",
"jms/payment-paypal-bundle": "1.0.0",
"jms/payment-core-bundle": "dev-master",
"payum/payum-bundle": "1.0",
"payum/offline": "*@stable",
"payum/core": "1.0.*"
"payum/paypal-express-checkout-nvp": "1.2.0",
"payum/paypal-pro-checkout-nvp": "1.3.0",
答案 0 :(得分:1)
我刚刚找到了解决问题的方法:
我取代了这个:
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/admin-bundle": "~2.4@dev",
由此:
"sonata-project/doctrine-orm-admin-bundle": "3.x-dev as 2.4",
"sonata-project/admin-bundle": "3.x-dev as 2.4",
有关详细信息,请查看以下链接: