我们正在尝试让所有未使用 Composer 安装的 Drupal 模块在 Composer 中进行管理。
清除 Composer 的缓存后,我们运行以下命令:
./composer require dompdf/dompdf;
Run Code Online (Sandbox Code Playgroud)
这将返回:
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: phenx/php-svg-lib[v0.2, 0.1].
- Can only install one of: phenx/php-svg-lib[v0.2, 0.1].
- Can only install one of: phenx/php-svg-lib[v0.2, 0.1].
- dompdf/dompdf v0.8.0 requires phenx/php-svg-lib 0.2.* -> satisfiable by phenx/php-svg-lib[v0.2]. …Run Code Online (Sandbox Code Playgroud)