Home > Software design >  I have this problem when I run composer update and install
I have this problem when I run composer update and install

Time:01-30

I have this problem when I run composer update and install Problem 1 - Root composer.json requires php ^7.2 but your php version (8.1.2) does not satisfy that requirement. Problem 2 - Root composer.json requires PHP extension ext-gd ^7.2 but 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 in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with --ignore-platform-req=ext-gd to temporarily ignore these required extensions.

CodePudding user response:

You need to install php8-gd or php-gd on your system. If you have ubuntu/Debian just run apt install php8-gd

CodePudding user response:

What has been explained in the error is very clear.

Problem 1

Root composer.json requires php ^7.2 but your php version (8.1.2) does not satisfy that requirement.

Your composer does not allow PHP version 8.1.2. Because, ^7.2 is equivalent to >=7.2 and <8.0.

More detail

Problem 2

Root composer.json requires PHP extension ext-gd ^7.2 but it is missing from your system. Install or enable PHP's gd extension.

You don't have PHP extension ext-gd or if you have GD installed, maybe you forgot to add it in php.ini.

More detail

  •  Tags:  
  • Related