执行composer update 命令提示Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 150994944 bytes)

官方出品:鸿宇科技
鸿宇论坛:bbs.hongyuvip.com
鸿宇QQ群:90664526
技术QQ号:1527200768
解决方案:php.ini 里默认的 memory_limit 为 128M ,此时执行composer update 命令失败,原因内存不足,修改 php.ini 文件中 memory_limit 为 4096M(或更高) ,再次执行 composer update 更新成功。composer 版本为最新,镜像为阿里云
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 150994944 bytes) in phar://D:/Tools/phpstudy_pro/Extensions/composer/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 90

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.

 

0 个评论

要回复文章请先登录注册