我尝试通过Windows(WAMP)中的Git bash安装Sylius composer create-project -s dev sylius/sylius
并获得此
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process ""c:\wamp\bin\php\php5.5.12\php.exe" "app/console" assets:insta
ll "web"" exceeded the timeout of 300 seconds.
我改变了phi.ini
realpath_cache_size = 16k
realpath_cache_ttl = 120
memory_limit = 512M //było 128M
max_input_time = 600 //60
max_execution_time = 120
我在MINGW32(Windows中的bash)中export COMPOSER_PROCESS_TIMEOUT=6000 ( defaults to 300 )
更改了作曲家超时,就像这里https://stackoverflow.com/a/18917919/3190476
我这样做$cfg['ExecTimeLimit'] = 0;
就像这里https://stackoverflow.com/a/17466797/3190476
答案 0 :(得分:19)
一次性解决方案
COMPOSER_PROCESS_TIMEOUT=2000 php composer.phar install
如果您像我一样全局使用它,请添加到composer注册表
composer --global config process-timeout 2000
我在这里找到了解决方案:http://www.papayasoft.com/2013/08/22/composer-process-timeout-when-fetching-large-repositories/
答案 1 :(得分:4)
在composer.json文件中添加配置选项 这是您项目的最佳解决方案 只将process-timeout键和值添加到0
{....
"config": {
"process-timeout":0
}
}