1

我正在尝试安装:

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)

4

1 回答 1

0

通过显式添加依赖解决:

php composer.phar require google/apiclient 1.0.4-beta elcodedocle/gplusraffle 0.1.*@beta

虽然实际上我想要的是:

php composer.phar create-project -s "beta" elcodedocle/gplusraffle
于 2014-06-26T01:13:13.447 回答