Composer running out of memory on every project, Mac OS X

前端 未结 9 1932
遇见更好的自我
遇见更好的自我 2020-12-01 14:50

I attempted to install aws/aws-sdk-php yesterday on one of my Laravel 4 projects using Composer, I cannot remember exactly the chain of events but it did not in

9条回答
  •  [愿得一人]
    2020-12-01 15:19

    At the present moment there is a bug on Composer causing memory to be exhausted.

    If you do

    composer install
    

    Then delete a folder inside vendor

    rm -rf vendor/laravel
    

    and do

    composer update
    

    You'll get this error. It's a bug, it is not supposed to run out of memory.

    For now you can fix it for yourself by doing:

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

    Also, check this thread, they are about to fix this.

提交回复
热议问题