执行 composer update
出现如下错误:
1 | Updates: symfony/service-contracts:v2.0.1, symfony/mime:v5.0.2, symfony/css-selector:v5.0.2, symfony/translation-contracts:v2.0.1 |
这一般是出现在低内存的虚拟主机上,解决如下,配置交换内存:
1 | /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 |
https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors