Avatar Ran Qiangjun

Composer Tips

Submitted by jungle on Sat, 09/21/2019 - 02:42

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

$ COMPOSER_MEMORY_LIMIT=-1 composer COMMAND_NAME

See https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors

or

Add an alias:

alias composer="COMPOSER_MEMORY_LIMIT=-1 composer"

©2019 ranqiangjun.com. All rights reserved.