Reputation: 41
Whenever I run the installer, or even manually installing Composer, I get an error that disallowed me to complete the installation and it is irritating. In Laragon, a program used to create many different projects using composer and its packages. It will not allow me to use Laravel because the Composer will not properly install and function.
The Error is:
The "https://getcomposer.org/versions" file could not be downloaded: 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.
The "https://getcomposer.org/download/1.4.2/composer.phar.sig" file could not be downloaded: 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.
Upvotes: 3
Views: 11407
Reputation: 256
Understand that the error is an IPV6 network error
At first, I updated the version of my composer running this command
composer -vvv self-update
I also followed this instruction from composer doc on resolving IPV6 timed out issue
https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-
I can't say which of these did the magic
Upvotes: 4
Reputation: 149
Deleting the https_proxy and http_proxy environment vars worked for me (Windows 10). And then installing it, set proxy in blank. It should work as it did for me.
Upvotes: 0