Windows7安装Composer出错 [ 2.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
谢谢大师解答,不过执行 "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.
应该不存在翻墙问题,直接访问 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"}}}
共 4 个回答
-
wuyuxifeng 回答于 2014-12-04 18:03 举报
-
wuyuxifeng 回答于 2014-12-06 20:16 举报
访问packagish.org超时无应答,试试翻墙,不然就直接下载压缩吧
gordonyii
最后登录:2014-12-15
在线时长:5小时35分
- 粉丝1
- 金钱25
- 威望0
- 积分75