composerでタイムアウトが発生する問題


composerのタイムアウトはデフォルトで300秒になっています。

$ composer start
> php -f example.php

  [Symfony\Component\Process\Exception\ProcessTimedOutException]              
  The process "php -f example.php" exceeded the timeout of 300 seconds.  


start [--dev] [--no-dev] [--] [<args>]...

composer.jsonに以下の設定を追記することで、タイムアウトの秒数を変更できます。

composer.json
"config": {
    "process-timeout": 0
},

※ 0にすると無制限です。