The detailed error message is as follows:
$ Composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
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/
Rule. php on line 62
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/
Rule. php on line 62
I always thought it was the network reason. Recently, the network connected to foreign countries was not very stable. Later, according to the error message Allowed memory size of 536870912 bytes exhausted, I was prompted to know that the memory allocation may be insufficient, we all know that in the PHP configuration file php. in ini, memory_limit is set to limit the memory for script running. This problem can be solved by increasing the value.
Memory_limit = 1G
Of course, you may not like modifying the configuration file php. ini at will. In the post "Composer update runs out of memory #1898", Dynom provides a temporary solution:
Php-dmemory_limit = 1G composer. phar update