PHP Composer update “cannot allocate memory” error (using Laravel 4)

后端 未结 26 1367
天命终不由人
天命终不由人 2020-11-29 14:46

I just can\'t solve this one.

I\'m on Linode 1G RAM basic plan. Trying to install a package via Composer and it\'s not letting me. My memory limit is set to \"-1\" o

26条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 15:34

    In my case I tried everything that was listed above. I was using Laravel and Vagrant with 4GB of memory and a swap, with memory limit set to -1. I deleted the vendor/ and tried other PHP-versions. Finally, I managed it to work by running

    vagrant halt
    vagrant up
    

    And then composer install worked again as usual.

提交回复
热议问题