Pennebaker / craft-architect

A plugin for importing and exporting content models from Craft 3/4 using JSON.
MIT License
72 stars 6 forks source link

Can't install craft-architect 2.2.12 using PHP 7.1.8 #37

Closed romainpoirier closed 5 years ago

romainpoirier commented 5 years ago

Error returned by composer when trying to install this version:

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • symfony/yaml v4.1.0 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.1 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.2 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.3 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.4 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.5 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.6 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.7 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.8 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.2.0 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.2.1 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.9 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.2.2 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • symfony/yaml v4.1.10 requires php ^7.1.3 -> your PHP version (7.1.8) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
  • pennebaker/craft-architect 2.2.12 requires symfony/yaml ^4.1 -> satisfiable by symfony/yaml[v4.1.10, v4.2.2, v4.1.9, v4.2.1, v4.2.0, v4.1.8, v4.1.7, v4.1.6, v4.1.5, v4.1.4, v4.1.3, v4.1.2, v4.1.1, v4.1.0].
  • Installation request for pennebaker/craft-architect 2.2.12 -> satisfiable by pennebaker/craft-architect[2.2.12].

Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.

spAnser commented 5 years ago

This can happen if your platform php is set lower than your installed php version in the composer.json file

"config": {
    "optimize-autoloader": true,
    "sort-packages": true,
    "platform": {
      "php": "7.0"
    }
  }
romainpoirier commented 5 years ago

Problem solved by updating the platform php value to 7.1.8, thank you!