【发布时间】:2014-04-28 00:33:39
【问题描述】:
所以我尝试在我的 Windows 操作系统上安装 Composer 并设置 Laravel,但我在运行安装时一直收到相同的错误。
首先我选择了 php.exe,因为它从目录 C:\wamp\bin\php\php5.4.16 询问
我点击下一步,然后安装,它会像安装一样完成,然后停止并显示错误:
An error occurred. Clicking Retry may resolve this issue.
Connection error [ERR_CONNECTION]:Unable to connect to getcomposer.org
Request to http://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 connection host has failed to respond.
现在我不确定是否必须在 php.ini 文件中设置或更改某些内容才能实现这一点,但据我所知,getcomposer.org 网站无法与我的 PC 进行通信,就好像我有一个防火墙阻止它,我的防火墙在安装时已关闭。
我无法在堆栈溢出或任何在线搜索中找到匹配的问题,所以我继续前进并想问问是否有人可以提供帮助,谢谢。
【问题讨论】:
标签: php laravel wamp composer-php