Heim  >  Artikel  >  Backend-Entwicklung  >  composer安装Laravel的问题?

composer安装Laravel的问题?

WBOY
WBOYOriginal
2016-06-06 20:39:18847Durchsuche

刚刚想上手Laravel,我是通过composer安装的,在Iterm2里出现:

<code>PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/RuleWatc hGraph.php on line 52
</code>

该如何解决?

回复内容:

刚刚想上手Laravel,我是通过composer安装的,在Iterm2里出现:

<code>PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/RuleWatc hGraph.php on line 52
</code>

该如何解决?

这是经常会遇到的问题,内存达到 PHP 设置的上限。解决办法是调高它。

我猜测是 GFW 导致网速不好,而出现的这个问题。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn