Answer the question
In order to leave comments, you need to log in
Why such an error "Your requirements could not be resolved to an installable set of packages."?
Good afternoon, please help...
what does the composer want from me?
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for Zend Framework zend-mvc applications",
"type": "project",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"mvc",
"zf"
],
"homepage": "http://framework.zend.com/",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^5.6 || ^7.0",
"zendframework/zend-component-installer": "^1.0 || ^0.7 || ^[email protected]",
"zendframework/zend-mvc": "^3.0.1",
"zfcampus/zf-development-mode": "^3.0",
"zendframework/zend-form": "^2.14",
"zendframework/zend-db": "^2.10",
"zendframework/zend-i18n": "^2.9",
"zendframework/zend-hydrator": "^2.4"
},
"autoload": {
"psr-4": {
"Application\\": "module/Application/src/",
"Album\\": "module/Album/src/"
}
},
"autoload-dev": {
"psr-4": {
"ApplicationTest\\": "module/Application/test/"
}
},
"extra": [],
"scripts": {
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"development-disable": "zf-development-mode disable",
"development-enable": "zf-development-mode enable",
"development-status": "zf-development-mode status",
"post-create-project-cmd": [
"@development-enable"
],
"serve": "php -S 0.0.0.0:8080 -t public public/index.php",
"test": "phpunit"
}
}
docker-compose run composer require doctrine/doctrine-orm-module
Using version ^2.1 for doctrine/doctrine-orm-module
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package zendframework/zend-hydrator (locked at 3.0.2, required as ^2.4) is satisfiable by zendframework/zend-hydrator[3.0.2] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
[email protected]:~/Документы/zendframework$ docker-compose run composer require doctrine/doctrine-orm-module
Using version ^2.1 for doctrine/doctrine-orm-module
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install doctrine/doctrine-orm-module 2.1.4
- Conclusion: don't install doctrine/doctrine-orm-module 2.1.3
- Conclusion: don't install doctrine/doctrine-orm-module 2.1.2
- Conclusion: don't install doctrine/doctrine-orm-module 2.1.1
- Conclusion: remove zendframework/zend-hydrator 3.0.2
- Installation request for doctrine/doctrine-orm-module ^2.1 -> satisfiable by doctrine/doctrine-orm-module[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4].
- Conclusion: don't install zendframework/zend-hydrator 3.0.2
- doctrine/doctrine-orm-module 2.1.0 requires zendframework/zend-hydrator ^1.1 || ^2.2.1 -> satisfiable by zendframework/zend-hydrator[1.1.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.x-dev].
- Can only install one of: zendframework/zend-hydrator[1.1.0, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.2.1, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.2.2, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.2.3, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.3.0, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.3.1, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.4.0, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.4.1, 3.0.2].
- Can only install one of: zendframework/zend-hydrator[2.4.x-dev, 3.0.2].
- Installation request for zendframework/zend-hydrator (locked at 3.0.2) -> satisfiable by zendframework/zend-hydrator[3.0.2].
Installation failed, reverting ./composer.json to its original content.
Answer the question
In order to leave comments, you need to log in
Version conflict between dependencies. Delete composer.lock and install (or specify manually in composer.json) compatible versions as recommended (I didn't read and understand the whole log, but in the course of doctrine/doctrine-orm-module it asks for an older version of zendframework/zend-hydrator).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question