themehybrid / mythic

Mythic is a next-generation starter theme designed to help theme authors write elegant, intelligent, and modern code.
https://themehybrid.com/themes/mythic
GNU General Public License v2.0
237 stars 43 forks source link

Update composer packages #89

Open VincEnterprise opened 3 years ago

VincEnterprise commented 3 years ago

When I'm trying to install this theme with the composer command:

composer create-project justintadlock/mythic theme-name

I get the following error:

Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - composer/installers is locked to version v1.6.0 and an update of this package was not requested.
    - composer/installers v1.6.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
  Problem 2
    - dealerdirect/phpcodesniffer-composer-installer is locked to version v0.4.4 and an update of this package was not requested.
    - dealerdirect/phpcodesniffer-composer-installer v0.4.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

Is there any chance the PHPCS and Installers packages could be updated so that I can use this with an up-to-date version of Composer?

webstractions commented 3 years ago

In your composer.json file update the codesniffer dev require to 0.7.0, which works in 2 and compatible with 1 as well.

"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0"