Composer: 作曲家真的很慢

创建于 2017-05-23  ·  3评论  ·  资料来源: composer/composer

今天, composer install命令需要很长时间才能完成。 它发生在全局和本地需要。

composer diagnose一切正常。

当我运行此命令时(但与本地安装程序相同):

$ composer global require  hirak/prestissimo --profile -vvv

我得到以下输出:

[1.4MB/0.00s] Changed current directory to /home/vagrant/.config/composer
Failed to initialize global composer: Composer could not find the config file: /home/vagrant/.config/composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Running 1.4.2 (2017-05-17 08:17:52) with PHP 7.1.5-1+deb.sury.org~xenial+2 on Linux / 4.4.0-31-generic
[1.7MB/0.01s] Reading ./composer.json
[1.7MB/0.01s] Loading config file ./composer.json
[2.0MB/0.01s] Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
[1.9MB/0.02s] Executing command (/home/vagrant/.config/composer): git branch --no-color --no-abbrev -v
[1.9MB/0.03s] Executing command (/home/vagrant/.config/composer): git describe --exact-match --tags
[1.9MB/0.03s] Executing command (/home/vagrant/.config/composer): git log --pretty="%H" -n1 HEAD
[1.9MB/0.04s] Executing command (/home/vagrant/.config/composer): hg branch
[1.9MB/0.04s] Executing command (/home/vagrant/.config/composer): fossil branch list
[1.9MB/0.04s] Executing command (/home/vagrant/.config/composer): fossil tag list
[1.9MB/0.05s] Executing command (/home/vagrant/.config/composer): svn info --xml
[2.4MB/0.09s] Downloading https://packagist.org/packages.json
[2.4MB/7.84s] Writing /home/vagrant/.cache/composer/repo/https---packagist.org/packages.json into cache
[2.4MB/7.84s] Downloading http://packagist.org/p/provider-2013%24442e1d5fa0fdbf77855cc363b024994a3e92a2f5099e5138b9c5777ae486703c.json
[2.5MB/108.65s] Downloading http://packagist.org/p/provider-2013%24442e1d5fa0fdbf77855cc363b024994a3e92a2f5099e5138b9c5777ae486703c.json

它阻塞在最后一行,但它非常随机,因为如果我将它放置约 30 分钟,它会继续获取其他 URI,但它会随机停止到其他 URI,有时需要超过 30 分钟。

知道为什么会这样吗? 似乎只适用于我的计算机(流浪者和本地计算机),但是如果我尝试使用另一台计算机,它可以正常工作。 我可以检查什么?

最有用的评论

所有3条评论

我越来越

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

使用 travis 构建

无论如何,在我的笔记本电脑完全重启后,它被修复了! 我不知道为什么,但现在对我来说没问题。 不过我会关注另一个问题,谢谢。

此页面是否有帮助?
0 / 5 - 0 等级