Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's gd extension.
Problem 2
- Root composer.json requires conedevelopment/bazar ^0.4.5 -> satisfiable by conedevelopment/bazar[v0.4.5].
- conedevelopment/bazar v0.4.5 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Failed to update packages for ./composer.json.
答案 0 :(得分:0)
当我去 laravel 项目安装 Bazar 库时,我遇到了这个问题。
谷歌搜索后,我得到了这个解决方案。
解决 Windows 10 和 PHP 8 上的错误。我按照以下步骤操作:
第 1 步: composer require "ext-gd:*" --ignore-platform-reqs
第2步: Abra o arquivo chamado php.ini,通常在以下目录C:\xampp\php\php.ini
第 3 步: 打开文件后,您必须搜索
;extension=gd
并将其更新为 extension=gd