Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tbsodik's avatar

install laravel settimeout request

I have a problem when installing laravel with composer on windows using CMD.

"composer create-project --prefer-dist laravel/laravel project"

I use this successfully but for vendors it doesn't work always occurs request timeout error.

then I use the vendor installation manually when Laravel has been created with a prompt like this

composer install or composer install --no-scripts or composer install --prefer-dist or composer clear-cache or composer self-update or composer install --prefer-dist --timeout=600 or composer config --global process-timeout 600

I've tried it but I still can't install vendor in Laravel, it always says request timeout, I can't run laravel because autoload.php is not found. Tell me, how to overcome this, maybe the developers can tell me

0 likes
6 replies
Glukinho's avatar

Try to add more verbosity:

composer create-project --prefer-dist laravel/laravel project -vvv

The command will produce a lot of debug logs, analyze them and maybe you will get an idea why you have request timeout.

tbsodik's avatar

@Glukinho I'm from Indonesia.

yes, I experienced this when "composer install" or creating a new laravel project.

what I did when I couldn't install composer for vendor was to copy paste "vendor" from an existing project.

what became my trouble was when I wanted to use the library needed for my project I couldn't install composer so I ended up using it manually for my project without composer and that was very inefficient in developing my project.

I have experienced this since Laravel was updated to the latest version, which is 12.x

The last time I had no problems with Laravel 11.x, I am sure it was not because of the Laravel update but from my area which was experiencing resource constraints or ip my area banned IDK.

Glukinho's avatar

If you launch installation several times, does the process always stuck on the same package laravel/pint?

tbsodik's avatar

@Glukinho now I successfully use laravel by completely removing laravel/pint which is in composer.json & composer.lock

Please or to participate in this conversation.