Cpanel Laravel 软件包安装获取 "Killed"

Cpanel Laravel package install getting "Killed"

我尝试在我的 cpanel 中安装条码包 laravel project.But 每次它被杀死时。

命令:

[......@host public_html]$ composer require milon/barcode

片刻之后:

Using version ^7.0 for milon/barcode
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
The "http://repo.packagist.org/p/symfony/polyfill-iconv%24535e139d88ce6708c9d8bf795da669c3fe46467f4bc7dc900e2e65a8d77b56ae.json" file could not be downloaded: failed to open stream: Network is unreachable
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Killed

我想安装的所有软件包也会发生这种情况 like:pdf 或 others.Updated 我的 composer.still 不工作。

这是因为您的服务器内存不足。你可以在你的本地机器上安装这个包,然后用本地的 composer.lock 文件替换你的服务器 composer.lock 文件 然后去到 终端 和 运行 作曲家更新.