Answer the question
In order to leave comments, you need to log in
Why doesn't composer work?
Ubuntu
When I go to the Composer site from Google Chrome , I get an error Cannot access the site ( below ERR_CONNECTION_TIMED_OUT )
When I run a command in the terminal, for example composer self-update , I get the error [Composer\Downloader\TransportException]
The " https:/ /getcomposer.org/versions " file could not be downloaded: failed to open stream: Connection timed out
When I try to run composer global require "fxp/composer-asset-plugin:^1.2.0" I get the error The "
https://packagist.org/packages.json " file could not be downloaded: failed to open stream: Connection timed out
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date But in the FireFox
browser, the composer visits the
site.The hosts file is standard, there is no proxy.Windows
I boot from this PC under Windows, the same situation, but I have not tried it with firefox.Please
tell me what to do?
Answer the question
In order to leave comments, you need to log in
First of all composer self-update.
Second, sudo. Why sudo? It happens that the composer settings cannot be overwritten. Either clean up the configuration file in your user folder and reinstall fxp, or dig in that direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question