Laravel 6 , Laravel
In this article, you will install laravel project in composer to define command then error to display in composer 'proc_open(): fork failed - Cannot allocate memory'.
In this article, you will find the solution for issue:
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details
proc_open(): fork failed - Cannot allocate memory
first check your swap with this command:
Run Following Commands:
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
It will help you...