composer 安装的时候 总是报错这个问题

Updating dependencies (including require-dev)
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129

TigerLin
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 6

或者

php -d memory_limit=-1 composer.phar install

2年前 评论

把php.ini的memory_limit设置大一点。

2年前 评论
TigerLin

@奕鹏 请教下 homestead里面如何设置

2年前 评论
奕鹏 2年前
TigerLin

解决办法 php -d memory_limit=-1 /usr/local/bin/composer require dcat/laravel-admin

2年前 评论

我是一到 “Updating dependencies (including require-dev)” 这一步就卡住,之后一直没反应,求解 :sob:

2年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!