我正在更新作曲家,它显示了一些错误,如下所示。
使用软件包信息加载composer存储库 更新依赖关系(包括require-dev) 您的要求无法解决为一组可安装的软件包。
Problem 1
- pusher/pusher-php-server v3.4.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- pusher/pusher-php-server v3.4.0 requires php >=5.4 <7.3 -> your PHP version (7.3.6) does not satisfy that requirement.
- pusher/pusher-php-server v3.3.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- pusher/pusher-php-server v3.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- pusher/pusher-php-server 3.4.x-dev requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for pusher/pusher-php-server ^3.3 -> satisfiable by pusher/pusher-php-server[3.4.x-dev, v3.3.0, v3.3.1, v3.4.0, v3.4.1].
To enable extensions, verify that they are enabled in your .ini files:
- C:\PHP7\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
答案 0 :(得分:3)
pusher v3不支持高于7.3的php版本
有一些选择:
第一个是将php降级到要求(不推荐),第二个是使用此命令将pusher升级到版本4
composer require pusher/pusher-php-server
答案 1 :(得分:-1)
答案 2 :(得分:-2)
尝试执行以下命令
使用以下命令安装第一个curl。
Excel.Worksheets
然后使用
sudo apt-get install curl