我想设置一个本地存储库,所以我设置了satis。我加载了SonataAdminBundle和KnpMenuBundle作为示例。satis.json:{"type": "vcs", "url": "https://github.com/sonata-project/SonataAdminBundle"},{"type": "vcs", "url": "https://github.com/KnpLabs/KnpMenuBundle"}
之后,在我的项目作曲家:
{"repositories": [
{
"type": "composer",
"url": "http://my.local.repo/"
},
{ "packagist" : false }
],
"minimum-stability":"dev",
"require": {
"sonata-project/admin-bundle": "dev-master"
},
}
当我更新composer时,我得到了这个错误:
Problem 1
- sonata-project/admin-bundle dev-master requires knplabs/knp-menu >=1.1.0,<3.0.0 -> no matching package found.
- sonata-project/admin-bundle dev-master requires knplabs/knp-menu >=1.1.0,<3.0.0 -> no matching package found.
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
潜在原因:-包裹名称拼写错误-根据您的最低稳定性设置,该软件包没有足够稳定的版本看见https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion了解更多详细信息。
我该怎么办?
我得到了解决方案:有两个捆绑包:knplabs/knp菜单捆绑包和knplabs/knp菜单,我下载错了。