danteg danteg - 1 year ago 169
PHP Question

Composer Install "Failed to open stream"

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.

Answer Source

Disabling my IPV6 fixed the composer installation and use for me, here is a link on how to do that (Works on Windows 10): https://www.youtube.com/watch?v=dK-IUs84V3w

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download