J'essayais d'installer le paquetage jasonlewis/enhanced-router dans laravel-starter-kit, et quand j'exécute composer la mettre à jour ne s'installe pas et donne des erreurs. Au départ, je pensais que le problème venait de la ligne composer pour le routeur jasonlewis/enhanced-router ("jasonlewis/enhanced-router": "dev-master"
)), mais je l'ai supprimée et j'ai la même erreur.
J'ai essayé de rechercher des problèmes similaires, mais je ne peux pas comprendre quel est le problème de dépendance que je rencontre.
Voici le résultat obtenu après avoir exécuté composer update
:
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: remove laravel/framework 4.0.x-dev
- Conclusion: don't install laravel/framework 4.0.x-dev
- Conclusion: don't install laravel/framework v4.0.10
- Conclusion: don't install laravel/framework v4.0.9
- Conclusion: don't install laravel/framework v4.0.8
- Conclusion: don't install laravel/framework v4.0.7
- Conclusion: don't install laravel/framework v4.0.6
- Conclusion: don't install laravel/framework v4.0.5
- Conclusion: don't install laravel/framework v4.0.4
- Conclusion: don't install laravel/framework v4.0.3
- Conclusion: don't install laravel/framework v4.0.2
- Conclusion: don't install laravel/framework v4.0.1
- Conclusion: don't install laravel/framework v4.0.0
- Conclusion: don't install laravel/framework v4.0.0-BETA4
- Installation request for zizaco/confide dev-master -> satisfiable by zizaco/confide[dev-master].
- Conclusion: don't install laravel/framework v4.0.0-BETA3
- bllim/datatables dev-master requires illuminate/filesystem >=4.0.0 -> satisfiable by laravel/framework[4.0.x-dev,
4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.
9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illuminat
e/filesystem[4.0.x-dev, 4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.
6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4
.1.8, v4.1.9].
- bllim/datatables 1.3.0 requires illuminate/filesystem >=4.0.0 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.x
-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v4
.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illuminate/fil
esystem[4.0.x-dev, 4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4
.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8,
v4.1.9].
- bllim/datatables dev-master requires illuminate/filesystem >=4.0.0 -> satisfiable by laravel/framework[4.0.x-dev,
4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.
9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illuminat
e/filesystem[4.0.x-dev, 4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.
6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4
.1.8, v4.1.9].
- bllim/datatables v1.3.1 requires illuminate/filesystem >=4.0.0 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.
x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v
4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illuminate/fi
lesystem[4.0.x-dev, 4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v
4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8
, v4.1.9].
- bllim/datatables v1.3.2 requires illuminate/filesystem >=4.0.0 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.
x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v
4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illuminate/fi
lesystem[4.0.x-dev, 4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v
4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8
, v4.1.9].
- bllim/datatables v1.3.3 requires illuminate/filesystem >=4.0.0 -> satisfiable by laravel/framework[4.0.x-dev, 4.1.
x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v
4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illuminate/fi
lesystem[4.0.x-dev, 4.1.x-dev, dev-master, 4.2.x-dev, v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v
4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8
, v4.1.9].
- Can only install one of: laravel/framework[v4.0.0-BETA2, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA2, dev-master].
- Can only install one of: laravel/framework[v4.0.0-BETA2, 4.2.x-dev].
- Can only install one of: laravel/framework[v4.1.0, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.1, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.10, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.11, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.12, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.2, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.3, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.4, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.5, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.6, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.7, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.8, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.9, v4.0.0-BETA2].
- don't install illuminate/filesystem 4.0.x-dev|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.0|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.1|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.10|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.2|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.3|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.4|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.5|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.6|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.7|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.8|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.0.9|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem 4.1.x-dev|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem 4.2.x-dev|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.0|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.1|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.10|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.11|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.12|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.2|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.3|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.4|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.5|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.6|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.7|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.8|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem v4.1.9|don't install laravel/framework v4.0.0-BETA2
- don't install illuminate/filesystem dev-master|don't install laravel/framework v4.0.0-BETA2
- Installation request for laravel/framework 4.0.* -> satisfiable by laravel/framework[4.0.x-dev, v4.0.0, v4.0.0-BET
A2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
- Installation request for bllim/datatables * -> satisfiable by bllim/datatables[1.3.0, dev-master, v1.3.1, v1.3.2,
v1.3.3].
Et mon compositeur.json
{
"name": "andrew13/Laravel-4-Bootstrap-Starter-Site",
"description": "Laravel 4 Starter Site",
"keywords": ["laravel","Starter Site"],
"license": "MIT",
"authors": [
{
"name": "Andrew Elkins",
"homepage": "http://www.andrewelkins.com"
}
],
"require": {
"laravel/framework": "4.0.*",
"twbs/bootstrap": "3.0.0",
"zizaco/confide": "dev-master",
"zizaco/entrust": "dev-master",
"jasonlewis/basset": "dev-master",
"robclancy/presenter": "1.2.*",
"j20/php-uuid": "dev-master",
"bllim/datatables": "*",
"blueimp/jquery-file-upload": "dev-master",
"jasonlewis/enhanced-router": "dev-master"
},
"require-dev": {
"way/generators": "dev-master",
"mockery/mockery": "dev-master@dev",
"summerstreet/woodling": "0.1.*",
"barryvdh/laravel-ide-helper": "dev-master",
"leafo/lessphp": "v0.4.0",
"natxet/CssMin": "dev-master",
"lmammino/jsmin4assetic": "1.0.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/library",
"app/models",
"app/presenters",
"app/database/migrations",
"app/database/seeds",
"app/tests/library"
]
},
"scripts": {
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-install-cmd": [
"php artisan optimize"
],
"post-update-cmd": [
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}
Je n’ai pas commencé à partir du paquet de base Laravel, j’ai utilisé andrew13/Laravel-4-Bootstrap-Starter-Site
Bienvenue dans la pire fonctionnalité de Composer!
Le problème est donc que vous avez des conflits difficiles à déceler dans vos dépendances.
Vous avez besoin de "laravel/framework": "4.0.*",
Dans votre composer.json. Vous avez également une exigence pour "zizaco/confide": "dev-master"
En regardant dans le fichier composer.json, vous voyez: 'zizaco/confide' dans github:
"illuminate/support": "4.1.x",
La fonction Composer qui vous pose problème est que le mot clé replace
FONCTIONNE GLOBALEMENT DANS L'ENSEMBLE DE PACKAGIST .
Donc, parce que le paquet 'illuminate/support' est remplacé par Laravel lui-même lorsque Composer essaie de satisfaire à l'exigence de "illuminate/support": "4.1.x" il essaye en réalité de télécharger laravel version 4.1.x à la place.
Cela entre en conflit avec votre exigence de laravel version 4.0. * Et l'ensemble des dépendances ne peut donc pas être résolu.
Je pense qu'il n'y a peut-être pas de solution triviale à votre problème.
J'allais suggérer de spécifier une version antérieure de zizaco/confide plutôt que dev-master, qui dépend de la version 4.0.x de illuminate/support plutôt que de la version 4.1.x. Toutefois, cela impliquerait de passer de zizaco/confide 3.x à 2. .x qui n'est probablement pas acceptable.
La seule autre option possible serait de changer votre exigence de laravel 4.0.x à 4.1. * - ce qui peut être acceptable ou non, en fonction de la quantité de travail que cela vous occasionnerait.