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?

藏色散人
Release: 2020-04-11 14:00:32
forward
3664 people have browsed it

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

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!

Related labels:
source:segmentfault.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