2014-12-04 11:08:51 32615次浏览 4条回答 0 悬赏 0 金钱

下载 Composer-Setup.exe 后,安装,出现如下错误,有没有大神帮忙诊断一下,安装的是php集成环境xampp , PHP Version 5.6.3.

Composer Download Error

Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org

Request to https://getcomposer.org/installer failed with errors:
Failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

openssl

OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1i 6 Aug 2014
OpenSSL Header Version OpenSSL 1.0.1i 6 Aug 2014

补充于 2014-12-05 15:06

谢谢大师解答,不过执行 "php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta3"" 的时候出现如下错误..

....AppData/Roaming/Composer

./composer.json has been updated

Loading composer repositories with package information

[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: fai
led to open stream: A connection attempt failed because the connected party
did not properly respond after a period of time, or established connection
failed because connected host has failed to respond.

补充于 2014-12-10 14:53

应该不存在翻墙问题,直接访问 https://packagist.org/packages.json 显示:

{"packages":[],"notify":"\/downloads\/%package%","notify-batch":"\/downloads\/","providers-url":"\/p\/%package%$%hash%.json","search":"\/search.json?q=%query%","provider-includes":{"p\/provider-active$%hash%.json":{"sha256":"25de36590a8cacdc8018f277a7c1d58cdfa564b629576ddde87b53671b82198a"},"p\/provider-archived$%hash%.json":{"sha256":"1c86ef1e1a3f96dff2e70d637e9806674e5b3f4105ed1f294b78344a4564f6bb"},"p\/provider-latest$%hash%.json":{"sha256":"23b2b0c9fde2cd919c89ad5631b337dfc68994430440969a90ccaaffbafa7144"},"p\/provider-stale$%hash%.json":{"sha256":"ee221c2d8b3a79d9b391c3e83aed0ec45df8684b64ab03ee94bc3162d402cabd"}}}

您需要登录后才可以回答。登录 | 立即注册
gordonyii
职场新人

gordonyii

注册时间:2014-12-04
最后登录:2014-12-15
在线时长:5小时35分
  • 粉丝1
  • 金钱25
  • 威望0
  • 积分75

热门问题