Executing composer throws Killed solution

藏色散人
Release: 2020-09-30 15:07:33
forward
2513 people have browsed it

The following tutorial column of composer will introduce to you the solution to the Killed problem when executing composer. I hope it will be helpful to friends in need!

Executing composer throws Killed solution

1. The error is reported as follows

root@test2:/work/usrc$ composer require qcloud/cos-sdk-v5
./composer.json has been updated
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
Copy after login

2. Solution

This reason is mostly caused by insufficient cache. It can be increased in the Linux environment. Caching is resolved.

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

The above is the detailed content of Executing composer throws Killed solution. For more information, please follow other related articles on the PHP Chinese website!

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