-1

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"

BruhG0d
  • 1
  • 4
  • "composer cant create a laravel project" - what does that mean? What happens instead? What have you tried to resolve the problem? – Nico Haase Oct 12 '22 at 10:28
  • tahe a look at https://stackoverflow.com/questions/47442233/cant-create-laravel-project – Jayesh Nai Oct 12 '22 at 12:52

2 Answers2

0

hello you can try this,

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

0

Fixed the problem by running

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

source: Composer cannot download files

Mustafa Poya
  • 2,615
  • 5
  • 22
  • 36
BruhG0d
  • 1
  • 4