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

后端 未结 26 1470
天命终不由人
天命终不由人 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:13

    A bit old but just in case someone new is looking for a solution, updating your PHP version can fix the issue.

    Also you should be committing your composer.lock file and doing a composer install on a production environment which is less resource intensive.

    More details here: https://github.com/composer/composer/issues/1898#issuecomment-23453850

提交回复
热议问题