Created
October 8, 2019 20:47
-
-
Save ummdorian/bc0259df3e52548f9a23b28b3dab368b to your computer and use it in GitHub Desktop.
Composer Memory Limits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If composer memory limit: | |
export COMPOSER_MEMORY_LIMIT=-1 | |
If php memory limit: | |
php -d memory_limit=-1 $(which composer) {{ command goes here }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you get proc_open() memory swap error:
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1