作曲家更新麻烦 [英] Composer update trouble

查看:70
本文介绍了作曲家更新麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用laravel +作曲家.我正在加载方式/发电机包,当我运行composer update时,出现此错误:

I'm using laravel + composer . I'm loading way/generators package and when I run composer update give me this error:

使用软件包信息加载composer存储库正在更新 依赖项(包括require-dev)

Loading composer repositories with package information Updating dependencies (including require-dev)

严重错误:耗尽的536870912字节的允许内存大小(尝试 分配67108864字节) phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php 在第170行

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 170

推荐答案

我认为,这是因为作曲家更新已使用了所有内存.

I think, This is because composer update has used all the memory.

php -d memory_limit=1G /usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar update

这在Mac上对我有效.

This works for me on a mac.

也请签出以使用composer安装.

Also check out to use composer install.

这篇关于作曲家更新麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆