Kdyby/Console nelze nainstalovat na Nette 3.0
- ForestCZE
- Člen | 209
Pokouším se nainstalovat Kdyby/Console a vyhazuje mi to:
root@80-37:/var/www/devems# composer require kdyby/console
Using version ^2.7 for kdyby/console
./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
- kdyby/console v2.7.1 requires nette/di ^2.4.8@dev -> satisfiable by nette/di[v2.4.10, v2.4.11, v2.4.12, v2.4.13, v2.4.14, v2.4.15, v2.4.16, v2.4.8, v2.4.9, v2.4.x-dev] but these conflict with your requirements or minimum-stability.
- kdyby/console v2.7.0 requires nette/di ^2.4@dev -> satisfiable by nette/di[v2.4.0, v2.4.1, v2.4.10, v2.4.11, v2.4.12, v2.4.13, v2.4.14, v2.4.15, v2.4.16, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.4.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for kdyby/console ^2.7 -> satisfiable by kdyby/console[v2.7.0, v2.7.1].
Installation failed, reverting ./composer.json to its original content.
composer.json:
{
"name": "nette/web-project",
"description": "Nette: Standard Web Project",
"keywords": ["nette"],
"type": "project",
"license": ["MIT", "BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
"require": {
"php": ">= 7.1",
"nette/application": "^3.0",
"nette/bootstrap": "^3.0",
"nette/caching": "^3.0",
"nette/database": "^3.0",
"nette/di": "^3.0",
"nette/finder": "^2.5",
"nette/forms": "^3.0",
"nette/http": "^3.0",
"nette/mail": "^3.0",
"nette/robot-loader": "^3.0",
"nette/security": "^3.0",
"nette/utils": "^3.0",
"latte/latte": "^2.5",
"tracy/tracy": "^2.6"
},
"require-dev": {
"nette/tester": "^2.0"
},
"autoload": {
"classmap": ["app/Bootstrap.php"]
},
"minimum-stability": "stable"
}
Jde nejspíše o to, že je to na Nette 2.4 a já mám 3.0. Jak to vyřešit?
Editoval ForestCZE (18. 2. 2020 2:01)
- nightfish
- Člen | 519
Aktuální stable verze kdyby/console
Nette
3.0 nepodporuje. Pokud bys chtěl použít dev verzi, tak udělej
následující:
vcomposer.json
změňminimum-stability
zestable
nadev
docomposer.json
přidej"prefer-stable": true
- spusť
composer require kdyby/console:dev-master
EDIT: Kdybys provedl kroky 1 a 2, tak ti
composer require kdyby/console
automaticky nainstaluje tu
dev-master
verzi. Ale je praktičtější, když
minimum-stability
měnit nebudeš a dev-master
si
vyžádáš explicitně u konkrétního balíčku. Dík @DavidMatějka
za upozornění.
Editoval nightfish (18. 2. 2020 10:39)
- David Matějka
- Moderator | 6445
pripadne doporucuji migraci na contributte/console
@nightfish upravovat minimum stability by nemelo byt potreba, staci requirenout tu dev-master