hi, there
I install composer-asset-plugin on my computer,but it tips errors all the time.
Composer 2.1.3
PHP 7.4.21
Run:
composer global require "fxp/composer-asset-plugin"
Error:
[InvalidArgumentException]
Package fxp/composer-asset-plugin has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version:
- fxp/composer-asset-plugin requires composer-plugin-api ^1.0 which does not match your installed version 2.1.0.
Exception trace:
() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:845
Composer\Command\InitCommand->findBestVersionAndNameForPackage() at phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:498
Composer\Command\InitCommand->determineRequirements() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:189
Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:312
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:125
Composer\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Command/GlobalCommand.php:111
Composer\Command\GlobalCommand->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:312
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:125
Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:64
require() at /usr/local/bin/composer:24
hi, there I install composer-asset-plugin on my computer,but it tips errors all the time.
Composer 2.1.3 PHP 7.4.21
Run:
Error: