Chyba instalace kdyby/facebook
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- luke82
- Člen | 12
Ahoj,
při instalaci kdyby/facebook pomocí composeru dle návodu z GitHubu dostanu
následující chybu (win7, nette 2.3). Před instalací jsem provedl composer
self-update a composer update:
C:\xampp\htdocs\test>composer require kdyby/facebook
Using version ^2.0 for kdyby/facebook
./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
- Installation request for kdyby/facebook ^2.0 -> satisfiable by kdyby/faceb
ook[v2.0.0].
- Conclusion: remove nette/utils v2.2.7
- Conclusion: dont install nette/utils v2.2.7
- kdyby/facebook v2.0.0 requires nette/di ~2.3@dev -> satisfiable by nette/d
i[v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5].
- nette/di v2.3.0 requires nette/utils ~2.3 -> satisfiable by nette/utils[v2
.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4].
- nette/di v2.3.1 requires nette/utils ~2.3 -> satisfiable by nette/utils[v2
.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4].
- nette/di v2.3.2 requires nette/utils ~2.3 -> satisfiable by nette/utils[v2
.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4].
- nette/di v2.3.3 requires nette/utils ~2.3 -> satisfiable by nette/utils[v2
.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4].
- nette/di v2.3.4 requires nette/utils ~2.3 -> satisfiable by nette/utils[v2
.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4].
- nette/di v2.3.5 requires nette/utils ~2.3 -> satisfiable by nette/utils[v2
.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4].
- Can only install one of: nette/utils[v2.3.0, v2.2.7].
- Can only install one of: nette/utils[v2.3.1, v2.2.7].
- Can only install one of: nette/utils[v2.3.2, v2.2.7].
- Can only install one of: nette/utils[v2.3.3, v2.2.7].
- Can only install one of: nette/utils[v2.3.4, v2.2.7].
- Installation request for nette/utils == 2.2.7.0 -> satisfiable by nette/ut
ils[v2.2.7].
Installation failed, reverting ./composer.json to its original content.
C:\xampp\htdocs\test>
Díky za tipy.
- luke82
- Člen | 12
Posílám svůj composer.json
{
"name": "nette/sandbox",
"description": "The sandbox is a pre-packaged Nette Framework project, basic configured structure for your application.",
"homepage": "http://nette.org",
"type": "project",
"license": ["Unlicense"],
"authors": [
{
"name": "David Grudl",
"homepage": "http://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "http://nette.org/contributors"
}
],
"require": {
"php": ">= 5.3.7",
"nette/nette": "~2.2.0",
"dg/adminer-custom": "~1.5"
},
"require-dev": {
"nette/tester": "~1.0"
},
"minimum-stability": "stable"
}
- David Matějka
- Moderator | 6445
vidim tam nette 2.2 a ne 2.3, jak si rikal. Tak bud aktualizuj nette, nebo
pouzij kdyby/facebook:~1.3
- David Matějka
- Moderator | 6445
@luke82 composer neaktualizuje na verzi vyssi, nez je uvedena
v composer.json. Kdyz mas tedy v composeru treba ~2.2.0
tak
aktualizuje na 2.2.1 nebo 2.2.5, ale jiz ne na 2.3.0. To bys musel upravit
composer.json. Pravidla pro zapis verzi najdes v dokumentaci composeru ..