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)
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
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.