我正在尝试安装:
https://packagist.org/packages/elcodedocle/gplusraffle
这需要:
https://packagist.org/packages/google/apiclient
通过简单地做:
php composer.phar require elcodedocle/gplusraffle 0.1.*@beta
我得到这个错误:
您的要求无法解决为一组可安装的软件包。
Problem 1
- Installation request for elcodedocle/gplusraffle 0.1.*@beta -> satisfiable by elcodedocle/gplusraffle[0.1.0-beta].
- elcodedocle/gplusraffle 0.1.0-beta requires google/apiclient 1.0.4-beta -> no matching package found.
当我通过克隆 repo 并安装 composer 在本地执行此操作时:
git clone https://github.com/elcodedocle/gplusraffle
php composer.phar install
依赖解决没有问题
为什么?
(elcodedocle/gplusraffle master 匹配 0.1.0-beta 标签,所以它是相同的 composer.json,我已经检查过。并且要求也相同:google/apiclient 的 1.0.4-beta)