【发布时间】:2016-06-25 07:35:08
【问题描述】:
当我使用很多包运行 composer update 时,我收到此错误:
Problem 1
- Installation request for piwik/piwik dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc -> satisfiable by piwik/piwik[dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc].
- myspace/MyPlugin 2.13.0 requires piwik/piwik >=2.16.0 -> satisfiable by piwik/piwik[2.16.0].
- Can only install one of: piwik/piwik[2.16.0, dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc].
- Installation request for myspace/myplugin 2.13.0 -> satisfiable by myspace/MyPlugin[2.13.0].
奇怪的是,piwik 标签2.16.0 与dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc 完全相同。此外,我没有看到任何需要 dev-2491e6bfcf61984b0f0f3387e1496815e809c6cc 的依赖 composer.json。
这在我的主要composer.json。存储库定义为(https://github.com/myspace/MyPlugin.git 是假地址):
"repositories": {
"myspace-myplugin": {
"type": "vcs",
"url": "https://github.com/myspace/MyPlugin.git"
},
"require": {
"myspace/MyPlugin": "2.13.0"
}
}
和依赖composer.json的myspace/MyPlugin要求:
"require": {
"piwik/piwik": ">=2.16.0",
"php": ">=5.4"
}
【问题讨论】:
标签: github composer-php dependency-management