在 Symfony 4.3 上安装 Ckeditor 时出错

Error when installing Ckeditor on Symfony 4.3

我在 Symfony 4.3 上安装 CKeditor 时遇到问题,当我输入安装 ckeditor 包的命令时,它让我进入控制台:

composer require friendsofsymfony / ckeditor-bundle

出现错误,控制台回答我:

Problem 1      - Installation request for friendsofsymfony / ckeditor-bundle ^ 2.2 -> satisfiable by friendsofsymfony / ckeditor-bundle [2.2.0].      - friendsofsymfony / ckeditor-bundle 2.2.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.

Installation failed, deleting ./composer.json. Air-de-Clement: $ composer require friendsofsymfony / ckeditor-bundle ^ 5

作曲家对你说 the requested PHP extension zip is missing from your system。你需要安装它。

你可以运行sudo apt-get install php7.VERSION-zip

就像说的那样here for linux