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

Israjur's avatar

composer create-project --prefer-dist laravel/laravel (Project_Name) Taking too long

I was trying to create a new project of laravel with 'composer create-project --prefer-dist laravel/laravel (Project_Name) ' . I was waiting for half an hour but it was stuck and taking too long to create new project. Whats wrong ??

Nothing happens after - Loading composer repositories with package information Updating dependencies (including require-dev)

0 likes
4 replies
pardeepkumar's avatar

Let's try with clone form Github

Clone your project

Go to the folder application using cd command on your cmd or terminal

Run composer install

Copy.env.examplefile to .env on the root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal, Ubuntu Open your .env file and change the database name (DB_DATABASE) to whatever you have, username (DB_USERNAME) and password (DB_PASSWORD) field correspond to your configuration.

After successfully installed type php artisan serve

For more information Visit : https://www.cloudways.com/blog/install-laravel-5-5/

Thyrosis's avatar

While both answers offer a suitable roundabout solution, neither of then solves the actual problem.

I've never had this issue, but first thing that comes to mind is an unstable internet connection. The loading needs to access the remote repos for all dependencies.

Unless you've installed a laravel project before, the projects are loaded locally and maybe there is a permission or disk space error.

1 like
Cronix's avatar

I'd just try it again. I've noticed random timeouts with packagist the last few days.

Please or to participate in this conversation.