loading...

How to fix PHP Composer memory limit issues

stuartcreed profile image StuartCreed ・1 min read

If composer is installed globally on MacOS Catalina run:

php -d memory_limit=-1 /usr/local/bin/composer update --no-plugins

https://stackoverflow.com/questions/49212475/composer-require-runs-out-of-memory-php-fatal-error-allowed-memory-size-of-161

OR

Putting COMPOSER_MEMORY_LIMIT=-1 in your bash_profile file works for some people -> although I have not tested this version of the fix myself.

Discussion

pic
Editor guide