Home  >  Article  >  Development Tools  >  Solve composer error: memory size exceeded (Allowed memory size)

Solve composer error: memory size exceeded (Allowed memory size)

藏色散人
藏色散人forward
2020-10-30 15:10:023039browse

The following tutorial column of composer will introduce to you about the composer error: the problem of exceeding the memory size (Allowed memory size), I hope it will be helpful to friends in need!

Solve composer error: memory size exceeded (Allowed memory size)

When I executed composer update today and updated the expansion package, I reported an error, as follows:

composer 报错:PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)
I searched online for a long time but could not find a solution. Finally, I still succeeded, so I wrote an article to record it.
First execute the composer help command

composer -h

Find the composer installation directory

composer 报错:PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)
Then execute:

php -d memory_limit=-1 /usr/bin/composer update

The execution was successful, thank you for sharing. . .

The above is the detailed content of Solve composer error: memory size exceeded (Allowed memory size). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete