我正在尝试在Windows操作系统上安装Composer并设置Laravel,但是每次运行安装时都会遇到相同的错误。
首先,我从目录
然后我点击下一步和安装,它会像正常安装一样进行,然后停止并显示错误:
首先,我从目录
C:\wamp\bin\php\php5.4.16
中选择了php.exe。然后我点击下一步和安装,它会像正常安装一样进行,然后停止并显示错误:
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似乎无法与我的电脑通信,就像我的防火墙拦截它一样。我在安装时关闭了防火墙。
我在stackoverflow上没有找到相关的问题,也没有在任何在线搜索中找到匹配的答案,所以我想问一下是否有人可以帮忙解决,谢谢。