You are not logged in.

#1 2020-04-25 15:36:58

Tomek_Cry
Member
Registered: 2020-04-25
Posts: 5

Composer failed open stream [ SOLVED ]

I think it's not composer fault but i have somthing wrong configured with my arch.

When I type:
composer create-project abc
or enything else with compsoer I always get this error:

[Composer\Downloader\TransportException]                                                                                 
  The "https://repo.packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out

Last edited by Tomek_Cry (2020-04-25 16:00:11)

Offline

#2 2020-04-25 15:58:23

Tomek_Cry
Member
Registered: 2020-04-25
Posts: 5

Re: Composer failed open stream [ SOLVED ]

Emm.. this work for me:

sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"

Last edited by Tomek_Cry (2021-02-03 15:46:25)

Offline

Board footer

Powered by FluxBB