composerエラーレポート整理

7164 ワード

一、composer require guzzlehttp/guzzleエラーYour requirements could not be resolved to an installable set ofプロンプトコンポーネントはインストールできません.検索するとバージョンが互換性がありません.
[xc@iZ19999xdnwm akm]$ composer require guzzlehttp/guzzle
Using version ^6.3 for guzzlehttp/guzzle
./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
    - The requested package minimum-stability could not be found in any version, there may be a typo in the package name.
  Problem 2
    - overtrue/wechat 3.2.5 requires guzzlehttp/guzzle ~6.2.1 -> satisfiable by guzzlehttp/guzzle[6.2.1, 6.2.2, 6.2.3, 6.2.x-dev] but these conflict with your requirements or minimum-stability.
    - overtrue/wechat 3.2.5 requires guzzlehttp/guzzle ~6.2.1 -> satisfiable by guzzlehttp/guzzle[6.2.1, 6.2.2, 6.2.3, 6.2.x-dev] but these conflict with your requirements or minimum-stability.
    - overtrue/wechat 3.2.5 requires guzzlehttp/guzzle ~6.2.1 -> satisfiable by guzzlehttp/guzzle[6.2.1, 6.2.2, 6.2.3, 6.2.x-dev] but these conflict with your requirements or minimum-stability.
    - Installation request for overtrue/wechat (locked at 3.2.5, required as ~3.1) -> satisfiable by overtrue/wechat[3.2.5].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
   see //getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read //getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

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

解決策:composer.jsonに以下の「minimum-stability」:「dev」//このrequireに出会ったときに完全に使える
[xc@iZ19999xdnwm akm]$ vim composer.json
{
    "minimum-stability": "dev",//   requirerequire      guzzlehttp/guzzle   ,    。
    "require": {
        "overtrue/wechat": "~3.1",
        "hanson/vbot": "^1.0",
        "snowair/phalcon-debugbar": "^1.1",
        "phpoffice/phpexcel": "^1.8",
        "symfony/dom-crawler": "^3.3",
        "khanamiryan/qrcode-detector-decoder": "^1.0",
        "alchemy/zippy": "^0.4.8",
        "guzzlehttp/guzzle": "^6.2@dev"//            ,    
    }
}

コマンドを実行すると、古いバージョンがremoveされ、installの新しいバージョンがインストールされます.この手順では、スクリーンショットはありません.成功した出力を貼り付けます.
[xc@iZ19999xdnwm akm]$ composer require guzzlehttp/guzzle
Using version ^6.2@dev for guzzlehttp/guzzle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

——————————————————————————————————
二、composerが遅すぎる?国内ミラーを交換
composer config -g repo.packagist composer https://packagist.phpcomposer.com

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————https://zhidao.baidu.com/question/1797313385867952187.html
役に立つリンクはいくつかあります.http://blog.csdn.net/qq_28666081/article/details/51335255