laravel - 身份验证未在 laravel 8 中创建
问题描述
我用这个命令
作曲家需要 laravel/ui
在 laravel:8 中进行身份验证,但它给出了以下错误:
Using version ^3.3 for laravel/ui
./composer.json has been updated
Running composer update laravel/ui
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/ui[v3.3.0, ..., 3.x-dev] require illuminate/console ^8.42 -> found
illuminate/console[v8.42.0, ..., 8.x-dev] but these were not loaded, likely because it
conflicts with another require.
- Root composer.json requires laravel/ui ^3.3 -> satisfiable by laravel/ui[v3.3.0, 3.x-dev].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
解决方案
首先,您应该使用以下命令更新所有 php 包:
composer update
在此尝试安装 laravel/ui 之后:
composer require laravel/ui
执行其中一个: // 生成登录/注册脚手架...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
最后
npm install
推荐阅读
- jquery - jQuery 通过使用变量作为从参数传递的 id 选择元素
- c# - VS19 C# 只给出了一个 Font 类构造函数
- mysql - 无法在 Spring 批处理 JPA 中保存数据
- android - BottomNavigationView 不显示标题和图标
- r - 在函数体内捕获和评估函数参数
- visual-studio - Rider 中 Visual Studio 的刹车线
- asp.net-core - 如何在 asp.net core 的其他表中添加数据和删除相同的数据?
- javascript - 阻止用户在 Firebase 中注册?
- java - 用另一个静态成员类扩展一个静态成员类是否安全?
- c# - 如何通过将 IoC 的名称用作字符串来动态解析 IoC