Composer Update failed — out of memory

后端 未结 25 2565
再見小時候
再見小時候 2020-12-01 00:40

I got this error when running composer.phar update on my VM:

PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried t

25条回答
  •  独厮守ぢ
    2020-12-01 01:08

    If you are still facing issues after updating your memory limit then the best thing to try is to run:

    composer update --lock
    

    This will update your lock file so that composer can run from it if you have changed your composer.json file.

    You can now optimally run:

    composer update
    

    or

    composer install
    

提交回复
热议问题