依赖问题作曲家[奏鸣曲管理员; SonataDoctrineORMAdminBundle]
Posted
技术标签:
【中文标题】依赖问题作曲家[奏鸣曲管理员; SonataDoctrineORMAdminBundle]【英文标题】:Dependencies issues composer [ sonata admin ; SonataDoctrineORMAdminBundle] 【发布时间】:2016-08-18 01:06:13 【问题描述】:今天早上,当我尝试运行 composer update 时,出现以下错误:
我该如何解决这个错误?
问题 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 的安装请求 -> 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",
【问题讨论】:
【参考方案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",
欲了解更多信息,您可以查看以下链接:
here
【讨论】:
以上是关于依赖问题作曲家[奏鸣曲管理员; SonataDoctrineORMAdminBundle]的主要内容,如果未能解决你的问题,请参考以下文章