composer config --list
composer ver1 stuck
Some times it is stuck because it is trying to use HTTP instead of https so just run this composer config --global repo.packagist composer https://packagist.org
timeout
GET composer config --global process-timeout SET composer config --global process-timeout 600