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.
curl https://getcomposer.org/versions
Also can you check that your openssl extension is enabled? in php.ini – Faireshttps://getcomposer.org/versions
using your browser or do you receive any king warnings about certificate? – Fairesphp -i | grep " PHP Stream"
. also please check to this issue - looks very similar to yours github.com/composer/composer/issues/4888 – Faires