Installing any Laravel package on an AWS EC2 server shows warning and error messages even though the composer version installed Globally is latest

218 views Asked by At

enter image description here

I tried installing Laravel packages on my EC2 server on AWS via puTTY but everytime i run installation commands for a Laravel package, It shows a warning message (as shown in the image) and after that crashes with the same message:

In RemoteFilesystem.php line 560:

  The "http://repo.packagist.org/p/provider-2013%24373e592feb042f51b8ed82f090
  6531e330bdd926e48324f0393ad8c54afb6b5c.json" file could not be downloaded:
  failed to open stream: Connection timed out

It happens for every Laravel package. I have the latest version of composer (2.0) installed Globally in the standard linux server path: /usr/local/bin/composer. Can anyone suggest any solution?

0

There are 0 answers