Why composer install timeouts after 300 seconds?

后端 未结 9 672
南笙
南笙 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 09:05

    try composer update/install -o -vvv and check wether the package is being loaded from composer's cache.

    if yes try clearing composer's cache or try adding -cache-dir=/dev/null.

    To force downloading an archive instead of cloning sources, use the --prefer-dist option in combination with --no-dev.

    Otherwise you could try raising composer's process timeout value:

    export COMPOSER_PROCESS_TIMEOUT=600   ( defaults to 300 )
    

提交回复
热议问题