我重新安装了Laravel 8,并且正在尝试安装Laravel Lighthouse,但看来Lighthouse尚不支持最新的Laravel 8版本,但是有pull request表示已在支持
这是我尝试运行composer require nuwave/lighthouse
时得到的:
Problem 1
- Conclusion: remove laravel/framework v8.5.0
- Conclusion: don't install laravel/framework v8.5.0
- nuwave/lighthouse 4.x-dev requires illuminate/validation 5.5.*, ... , v7.9.2].
- nuwave/lighthouse v4.16.2 requires illuminate/validation 5.5.*, ... , v7.9.2].
- don't install illuminate/validation 5.5.x-dev|don't install laravel/framework v8.5.0
...
- don't install illuminate/validation v7.9.2|don't install laravel/framework v8.5.0
- Installation request for laravel/framework (locked at v8.5.0, required as ^8.5) -> satisfiable by laravel/framework[v8.5.0].
- Installation request for nuwave/lighthouse ^4.16 -> satisfiable by nuwave/lighthouse[4.x-dev, v4.16.0, v4.16.1, v4.16.2, v4.16.3].
Installation failed, reverting ./composer.json to its original content.
我在做什么错了?
我的composer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.5",
"laravel/tinker": "^2.0"
},
"require-dev": {
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3"
}
}
答案 0 :(得分:3)
使用开发者主版本
composer require nuwave/lighthouse "dev-master"