2016-06-22 45 views
0

私のプロジェクト用にhttps://github.com/google/google-api-php-clientを作者でインストールしようとしています。コンポーザーエラー:インストールに失敗しました./composer.jsonを元のコンテンツに戻しました。

composer.json:

{ 
    "require": { 
     "Intervention/image": "~2.3.7", 
     "intervention/image": "^2.3", 
     "guzzlehttp/guzzle": "^6.2" 
    } 
} 

私は、このコマンドを実行します。

composer require google/apiclient:^2.0 

そして結果:

./composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8]. 
    - Installation request for google/apiclient 2.0 -> satisfiable by google/apiclient[v2.0.0]. 
    - Conclusion: remove guzzlehttp/psr7 1.3.0 
    - Conclusion: don't install guzzlehttp/psr7 1.3.0 
    - google/auth v0.8 requires guzzlehttp/psr7 1.2.* -> satisfiable by guzzlehttp/psr7[1.2.0, 1.2.1, 1.2.2, 1.2.3]. 
    - Can only install one of: guzzlehttp/psr7[1.2.0, 1.3.0]. 
    - Can only install one of: guzzlehttp/psr7[1.2.1, 1.3.0]. 
    - Can only install one of: guzzlehttp/psr7[1.2.2, 1.3.0]. 
    - Can only install one of: guzzlehttp/psr7[1.2.3, 1.3.0]. 
    - Installation request for guzzlehttp/psr7 (locked at 1.3.0) -> satisfiable by guzzlehttp/psr7[1.3.0]. 


Installation failed, reverting ./composer.json to its original content. 

はまた、私は前にphp composer.phar require guzzlehttp/guzzleをインストール...

答えて

0

I 〜だろうかあなたのプロジェクトの必要条件を削除してguzzlehttp/guzzleという名前をつけて、あなたのGoogleの依存関係から、それを取り入れたいバージョンを作者に伝えさせてください。何らかの理由で、Googleのパッケージはバージョンフロアが1.で1.2です。この要件を満たす。

あなたの新しい依存関係(Googleパッケージ)にもguzzlehttp/guzzleが必要なので、特別にそれを要求する必要はないので、削除してcomposer updateをもう一度お試しください。

関連する問題