作曲家设置本地存储库(满意)
composer set a local repository (satis)
我想设置一个本地Repository,所以我设置了satis。
我加载了 SonataAdminBundle 和 KnpMenuBundle 作为示例。
satis.json:
{"type": "vcs", "url": "https://github.com/sonata-project/SonataAdminBundle"},{"type": "vcs", "url": "https://github.com/KnpLabs/KnpMenuBundle"}
之后,在我的项目 composer 中:
{"repositories": [
{
"type": "composer",
"url": "http://my.local.repo/"
},
{ "packagist" : false }
],
"minimum-stability":"dev",
"require": {
"sonata-project/admin-bundle": "dev-master"
},
}
当我进行作曲家更新时,我收到了这个错误:
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-menu-bundle 和 knplabs/knp-menu,我下载错了。
我想设置一个本地Repository,所以我设置了satis。
我加载了 SonataAdminBundle 和 KnpMenuBundle 作为示例。
satis.json:
{"type": "vcs", "url": "https://github.com/sonata-project/SonataAdminBundle"},{"type": "vcs", "url": "https://github.com/KnpLabs/KnpMenuBundle"}
之后,在我的项目 composer 中:
{"repositories": [
{
"type": "composer",
"url": "http://my.local.repo/"
},
{ "packagist" : false }
],
"minimum-stability":"dev",
"require": {
"sonata-project/admin-bundle": "dev-master"
},
}
当我进行作曲家更新时,我收到了这个错误:
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-menu-bundle 和 knplabs/knp-menu,我下载错了。