解决composer require/composer install错误

2022-06-07 15:30:54 浏览数 (1)

在composer require或者composer install命令中报错了,无法正常下载安装包,报错如下:

代码语言:javascript复制
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
    - phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
    - phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
    - Installation request for phpunit/php-code-coverage (locked at 4.0.8) -> satisfiable by phpunit/php-code-coverage[4.0.8].

  To enable extensions, verify that they are enabled in your .ini files:

解决办法:

代码语言:javascript复制
composer require jpush/jpush --ignore-platform-reqs

0 人点赞