【发布时间】:2020-11-13 00:14:52
【问题描述】:
我正在尝试在我的 cpanel laravel 项目中安装条形码包。但每次它都会被杀死。
命令:
[......@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
我想安装的所有软件包也都会发生这种情况:pdf 或其他。更新了我的作曲家。仍然无法正常工作。
【问题讨论】:
-
这能回答你的问题吗? Composer killed while updating
-
一般来说,你应该避免在你的服务器上运行
composer require。在可能使用更多内存的开发系统上运行它 -
那么我的命令应该是什么?没有作曲家需要@NicoHaase
-
你需要
composer require来安装一个新的包,但你不应该在任何外部服务器上运行它
标签: laravel composer-php cpanel