craftcms / plugin-installer

Composer installer for Craft CMS plugins.
MIT License
28 stars 3 forks source link

`yiisoft/yii2-composer` and `craftcms/plugin-installer` plugins skipped because they require a different Plugin API version #7

Open proimage opened 3 years ago

proimage commented 3 years ago

Description

I'm getting back into development on an old Craft site I've not touched in a while. Since I last worked on the site, I upgraded composer (locally) from 1 to 2. So when I pull the latest from the git repo and try to run composer install, I get the following errors:

PS E:\User Data\Michael\Projects\IJMCA> composer install
The "yiisoft/yii2-composer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "craftcms/plugin-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the 
"--no-plugins" option.
PHP Fatal error:  Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in E:\User Data\Michael\Projects\IJMCA\vendor\kylekatarnls\update-helper\src\UpdateHelper\ComposerPlugin.php on line 11

Fatal error: Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in E:\User Data\Michael\Projects\IJMCA\vendor\kylekatarnls\update-helper\src\UpdateHelper\ComposerPlugin.php on line 11

Steps to reproduce

  1. Be assigned to this project
  2. Have the wrong composer version installed?
  3. ¯_(ツ)_/¯

Additional info