报错信息如下
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.
####原因 内存不足
解决方法
- 修改php.ini
- 执行composer时临时放开内存限制
COMPOSER_MEMORY_LIMIT=-1 composer require "package name"