WWW.lllT.neT文中由composer实例教程频道给各位讲解有关composer 内存不够问题,期待对必须的小伙伴有些协助!

composer 内存不够该怎么办?二步处理!

composer 内存不够?

出错信息内容如下所示

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
Check getcomposer.org/doc/article… for more info on how to handle out of memory errors.

####缘故 内存不够

解决方案

1.改动php.ini

2.实行composer时临时性放宽运行内存限定

COMPOSER_MEMORY_LIMIT=-1 composer require "package name"

以上便是composer 内存不够该怎么办?二步处理!的详尽具体内容,大量请关心自学java网其他相关文章!

WWW.lllT.neT

声明:有的资源来自网络转载,版权归原作者所有,如有侵犯到您的权益请联系邮箱:our333@126.com我们将配合处理!

原文地址:composer 内存不够该怎么办?二步处理!发布于2021-12-05 15:00:01