Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mberizzo/e3c566f25b0f38b0bde932f3b6014c68 to your computer and use it in GitHub Desktop.
Save mberizzo/e3c566f25b0f38b0bde932f3b6014c68 to your computer and use it in GitHub Desktop.
ErrorException: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 954
It's because of a lack of memory. You need to set up a swap file so that composer can do it's thing:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment