使用Composer安装组件返回错误

时间:2016-12-23 08:15:56

标签: yii2 composer-php yii2-advanced-app

我想通过composer安装yii2-user组件。使用命令composer require "dektrium/yii2-user:0.9.*@dev"。但我得到错误:

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


  [Composer\Downloader\TransportException]
  The "https://packagist.phpcomposer.com/p/symfony/dom-crawler%24ca0f1f00e970
  0369080dec636093ccc7480e0fe484edd4a18c03db023518ac4f.json" file could not b
  e downloaded: SSL: Connection reset by peer
  failed to open stream: HTTP request failed!

失败了:

https://packagist.phpcomposer.com/p/symfony/dom-crawler%24ca0f1f00e970
  0369080dec636093ccc7480e0fe484edd4a18c03db023518ac4f.json'

但是我使用了命令

curl https://packagist.phpcomposer.com/p/symfony/dom-crawler%24ca0f1f00e970
      0369080dec636093ccc7480e0fe484edd4a18c03db023518ac4f.json

返回结果是好的。我尝试'composer self-update'和'composer clear chche'但是存在错误 每个人都可以帮助我吗?

0 个答案:

没有答案