Composer更新失败-内存不足 [英] Composer Update failed -- out of memory

查看:697
本文介绍了Composer更新失败-内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的VM上运行composer.phar update时出现此错误:

I got this error when running composer.phar update on my VM:

PHP致命错误:在第179行的phar:///bin/composer.phar/src/Composer/Util/RemoteFilesystem.php中,耗尽了1073741824字节的内存大小(尝试分配144115188075867549字节)

PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 144115188075867549 bytes) in phar:///bin/composer.phar/src/Composer/Util/RemoteFilesystem.php on line 179

composer.json,如果需要:

{
        "description" : "The CodeIgniter framework",
        "name" : "codeigniter/framework",
        "license": "MIT",
        "require": {
                "php": ">=5.2.4",
                "videlalvaro/php-amqplib": "2.5.*"
        },
        "require-dev": {
                "mikey179/vfsStream": "1.1.*",
                "videlalvaro/php-amqplib": "2.5.*"
        }
}

该虚拟机最近刚刚从磁盘扇区故障问题中恢复,运行该虚拟机的家伙说该虚拟机已移至新磁盘.我的VM中只有Java,PHP,httpd,postgre,rabbitmq和网站本身,在此发生之前,它已经可以完美运行约4个月了.我正在使用PHP 5.6.11.有人可以帮忙吗?

The VM just recently recovered from a bad disk sector problem, and the guy running the VM said that the VM has been moved to a new disk. There are only Java, PHP, httpd, postgre, rabbitmq and the website itself in my VM, and it already ran perfectly for about 4 months before this happened. I'm using PHP 5.6.11. Can anyone help please?

推荐答案

已解决,方法是删除整个供应商文件夹,然后再次进行作曲家更新,从而可以正常工作.我什至不明白:v

Solved by deleting the whole vendor folder, and then doing the composer update again, and it works... somehow. I don't even understand :v

这篇关于Composer更新失败-内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆