skip to Main Content

Tried creating a new project on a corporate proxy and suddenly composer cant create a laravel project.

"curl error 28 while downloading https://repo.packagist.org/packages.json: Connection timed out after 10001 millisec
onds"

been trying different stackoverflow solutions but none of them solves my problem.

running "composer diagnose"

2

Answers


  1. Chosen as BEST ANSWER

    Fixed the problem by running

    SET HTTP_PROXY=http://username:password@IP:port && php composer.phar install 
    

    source: Composer cannot download files


  2. hello you can try this,

    Try clearing Composer’s cache by running composer clear-cache remove composer.lock and composer install

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search