我正在尝试在我的lumen项目上安装Laravel Dusk,但我不断收到以下错误:
Problem 1
- Installation request for illuminate/queue (installed at v5.4.36) -> satisfiable by illuminate/queue[v5.4.36].
- Can only install one of: illuminate/console[5.8.x-dev, 5.4.x-dev].
- Can only install one of: illuminate/console[5.9.x-dev, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.0, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.11, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.12, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.14, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.15, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.17, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.18, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.19, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.2, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.3, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.4, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.8, 5.4.x-dev].
- Can only install one of: illuminate/console[v5.8.9, 5.4.x-dev].
- Conclusion: install illuminate/console 5.4.x-dev
- Installation request for illuminate/console ^5.8 -> satisfiable by illuminate/console[5.8.x-dev, 5.9.x-dev, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.3, v5.8.4, v5.8.8, v5.8.9].
我尝试过:
composer require illuminate/console
composer dump-autoload
composer update
composer install
没有运气。在我的composer.json文件中没有照明/控制台,因此我无法在其中进行更新。
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.4.*",
"vlucas/phpdotenv": "~2.2",
"krisanalfa/lumen-dingo-adapter": "^0.0.3",
"sorskod/larasponse": "*",
"league/flysystem": " ~1.0",
"league/flysystem-aws-s3-v3": "^1.0",
"maatwebsite/excel": "^2.1",
"barryvdh/laravel-dompdf": "^0.8.0",
"illuminate/mail": "5.4"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~5.0",
"mockery/mockery": "~0.9",
"flipbox/lumen-generator": "^5.4"
},
但是,当我查看创建的composer.lock时,我可以在这里看到它:
"name": "illuminate/console",
"version": "v5.4.36",
"source": {
"type": "git",
"url": "https://github.com/illuminate/console.git",
"reference": "4f0413ffd240d2004c3e9e4cd8f63df249939a15"
},
有什么办法可以让我更新背包年龄?我相信dusk
至少需要5.7.*
。
答案 0 :(得分:2)
我无法使用illuminate/console
软件包复制您的问题,但是我确实设法在本地计算机上的测试项目中安装了指定的软件包。
确保composer.json文件中包含以下内容:
{
"minimum-stability": "dev",
"prefer-stable": true
}
删除供应商文件夹:
cd ~/path/to/project
rm -rf vendor/
然后运行composer update
忽略并生成一个新的锁定文件。