在 Laravel 8 中安装 Laravel/ui 的问题
Posted
技术标签:
【中文标题】在 Laravel 8 中安装 Laravel/ui 的问题【英文标题】:Problem with installing Laravel/ui in Laravel 8 【发布时间】:2021-04-03 09:25:56 【问题描述】:我正在尝试安装 laravel/ui,但出现此错误:
**Problem 1**
- laravel/tinker is locked to version v2.5.0 and an update of this package was not requested.
- laravel/tinker v2.5.0 requires illuminate/console ^8.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
**Problem 2**
- laravel/ui[v3.0.0, ..., 3.x-dev] require illuminate/console ^8.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires laravel/ui ^3.0 -> satisfiable by laravel/ui[v3.0.0, v3.1.0, 3.x-dev].
我试过了:
composer require laravel/ui "^3.0" --dev
还有:
composer require laravel/ui --dev
我总是遇到同样的错误。
注意:我使用的是最新版本:Laravel 8。
【问题讨论】:
【参考方案1】:随便写
composer require laravel/ui
如果你有问题,更新依赖关系
composer update
【讨论】:
完美答案!【参考方案2】:手动更新composer.json
文件有:
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.0",
在里面。
运行 composer update
将软件包更新到最新版本
【讨论】:
以上是关于在 Laravel 8 中安装 Laravel/ui 的问题的主要内容,如果未能解决你的问题,请参考以下文章
我未能在 Laravel 8 应用程序中安装 Font Awesome
在没有 XAMPP 的 Windows 中安装 Laravel