如何解决 Composer 时内存不够

2020-11-26  本文已影响0人  萧格

错误信息

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
上一篇 下一篇

猜你喜欢

热点阅读