执行 composer 抛出 Killed的解决办法
下面由composer教程栏目给大家介绍执行 composer 抛出 Killed的解决办法,希望对需要的朋友有所帮助!
1、报错如下
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
2、解决办法
出现此原因大多因为缓存不足造成,在linux环境可增加缓存解决。
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
以上就是执行 composer 抛出 Killed的解决办法的详细内容,更多请关注www.sxiaw.com其它相关文章!