问题描述
我正在使用laravel +作曲家.我正在加载方式/发电机包,当我运行composer update时,出现此错误:
I'm using laravel + composer . I'm loading way/generators package and when I run composer update give me this error:
严重错误:耗尽的536870912字节的允许内存大小(尝试 分配67108864字节) phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php 在第170行
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 170
推荐答案
我认为,这是因为作曲家更新已使用了所有内存.
I think, This is because composer update has used all the memory.
php -d memory_limit=1G /usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar update
这在Mac上对我有效.
This works for me on a mac.
也请签出以使用composer安装.
Also check out to use composer install.
这篇关于作曲家更新麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!