plugin-installer icon indicating copy to clipboard operation
plugin-installer copied to clipboard

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

Open proimage opened this issue 4 years ago • 0 comments

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

  • Craft version: Not 100% sure, but package.json shows 3.5.14.
  • PHP version: 7.4.16
  • Database driver & version:
mysql -V
C:\xampp\mysql\bin\mysql.exe  Ver 15.1 Distrib 10.4.18-MariaDB, for Win64 (AMD64), source revision 53123dfa3e365138591fd2f160c6057aca00a3e6
  • Plugins & versions: from package.json:
  "require": {
    "craftcms/cms": "3.5.14",
    "vlucas/phpdotenv": "^2.4.0",
    "craftcms/redactor": "2.8.3",
    "fruitstudios/linkit": "1.1.12.1",
    "pennebaker/craft-architect": "2.3.3",
    "ether/seo": "3.6.6",
    "verbb/image-resizer": "2.0.10",
    "craftcms/simple-text": "^2.0",
    "tightenco/collect": "^5.5",
    "ether/simplemap": "3.8.5",
    "wildbit/postmark-php": "^2.5",
    "supercool/tablemaker": "^2.0",
    "verbb/super-table": "2.6.3",
    "dg/twitter-php": "^3.7",
    "clubstudioltd/craft-asset-rev": "^6.0",
    "ether/tags": "^1.0",
    "carlcs/craft-redactorcustomstyles": "^3.0",
    "mmikkel/retcon": "2.2.1",
    "nystudio107/craft-cookies": "1.1.12",
    "craftcms/postmark": "2.0.2",
    "craftcms/feed-me": "4.2.4",
    "misterbk/mix": "^1.5",
    "solspace/craft-freeform": "3.8.4",
    "nystudio107/craft-youtubeliveembed": "1.0.5"
  },

proimage avatar May 23 '21 12:05 proimage