Home >Development Tools >composer >What should I do if composer appears Killed during installation and is terminated?

What should I do if composer appears Killed during installation and is terminated?

藏色散人
藏色散人forward
2020-04-11 14:00:093665browse

What should I do if composer appears Killed during installation and is terminated?

I got an error when installing phpspreadsheet using composer:

What should I do if composer appears Killed during installation and is terminated?

Check Related information This situation is caused by insufficient cache. In Linux, we can increase the cache to solve this problem. The specific operations are as follows:

free -m 
mkdir -p /var/\_swap\_ 
cd /var/\_swap\_ 
dd if\=/dev/zero of\=swapfile bs=1M count=2000 
mkswap swapfile 
swapon swapfile 
echo "/var/\_swap\_/swapfile none swap sw 0 0" >> /etc/fstab free -m

You can follow these commands successfully. I hope this article can help you

The above is the detailed content of What should I do if composer appears Killed during installation and is terminated?. For more information, please follow other related articles on the PHP Chinese website!

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