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

藏色散人
Release: 2020-10-30 15:10:02
forward
3059 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template