[英]Error: composer require conedevelopment/bazar
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.
When I went to install the Bazar library in a laravel project, I had this problem.当我在 laravel 项目中安装 Bazar 库时,我遇到了这个问题。
After googling, I got this solution.谷歌搜索后,我得到了这个解决方案。
Solving the error on Windows 10 and PHP 8 .解决Windows 10 和 PHP 8上的错误。 I followed these steps:
我按照以下步骤操作:
Step 1: composer require "ext-gd:*" --ignore-platform-reqs
第 1 步:
composer require "ext-gd:*" --ignore-platform-reqs
Step 2: Abra o arquivo chamado php.ini , it is usually found in the following directory C:\xampp\php\php.ini
第2步: Abra o arquivo chamado php.ini ,通常在以下目录中找到
C:\xampp\php\php.ini
Step 3: With the file open you will have to search for ;extension=gd
and update it to extension=gd
第 3 步:打开文件后,您必须搜索
;extension=gd
并将其更新为extension=gd
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.