#Composer commands hangs (install, create-project ...)

18 messages · Page 1 of 1 (latest)

velvet scarab
#

When I run composer install the command just hangs , and on different times (see images)
after searching some people said that the xdebug is the problem , so I disabled it, but nothing changed

#

here is started to install and then just stopped

cedar gyro
#

Unfortunately there's not much we can help you with here, apart from telling you to have more patience I guess. Composer is not a Laravel specific thing, it's used in all sorts of PHP projects. Guess it's not even Laravel specific, any other project with the same or more (nested) dependencies would likely have the same issue. It could be caused by so many things, like how you're running it (inside a VM), how fast your machine is (slow CPU), how fast your storage is (HDD vs SSD), heck, it might even be not enough RAM

sand swallow
#

You could run the command with -vvv to get more detailed information.

#

Also, you don't have to disable xdebug. Composer handles it automatically.

velvet scarab
#

even when I run php artisan serve with different php version and other projects it just stops like this

#

I tested a simple script like this one

#

and when i run it it shows this

#

it stops randomly

cedar gyro
#

That would be caused by max execution time, but composer sets it to unlimited

velvet scarab
sand swallow
#

What development environment are you using? How is PHP installed? Did you change any php.ini settings recently?

velvet scarab
#

for some projects

#

so just extracting and enabling few extensions in php.ini

velvet scarab