如何解决 Composer 时内存不够

错误信息

Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

解决方式

COMPOSER_MEMORY_LIMIT=-1 composer update/install/require

你可能感兴趣的:(如何解决 Composer 时内存不够)