首页 > 解决方案 > 身份验证未在 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.

标签: laravellaravel-8

解决方案


首先,您应该使用以下命令更新所有 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 

推荐阅读