composer 超時300

在使用Composer安裝phpunit的報錯

  [Symfony\Component\Process\Exception\ProcessTimedOutException]
  The process "git clone --no-checkout 'https://github.com/sebastianbergmann/
  phpunit.git' '/var/www/html/parklu_data_collect/vendor/phpunit/phpunit' &&
  cd '/var/www/html/parklu_data_collect/vendor/phpunit/phpunit' && git remote
   add composer 'https://github.com/sebastianbergmann/phpunit.git' && git fet
  ch composer" exceeded the timeout of 300 seconds

這是由於下載太慢超時導致的,解決:增加超時時間

1、查看默認超時時間

composer config --list

2、設置超時時間

composer config -g process-timeout 600

3、清除緩存

composer clear-cache

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章