Why composer install timeouts after 300 seconds?

后端 未结 9 653
南笙
南笙 2020-12-02 08:15

I have small project made in symfony2 when I try to build it on my server it\'s always fails when unzipping symfony. Build was OK and suddenly composer won\'t unzip symfony

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 08:48

    Composer itself impose a limit on how long it would allow for the remote git operation. A look at the Composer documentation confirms that the environment variable COMPOSER_PROCESS_TIMEOUT governs this. The variable is set to a default value of 300 (seconds) which is apparently not enough for a large clone operation using a slow internet connection.

    Raise this value using:

    COMPOSER_PROCESS_TIMEOUT=2000 composer install
    

提交回复
热议问题