简体   繁体   中英

Laravel passport conflicts with another require

I am using Laravel 7.3 version. I have tried to install Laravel passport. but I got an error like this:

Your requirements could not be resolved to an installable set of packages.

Problem 1 - laravel/passport[v10.1.0, ..., 10.x-dev] require illuminate/auth ^8.2 -> found illuminate/auth[v8.2.0, ..., 8.x-dev] but it conflicts with another require. - Root composer.json requires laravel/passport ^10.1 -> satisfiable by laravel/passport[v10.1.0, ..., 10.x-dev].

Installation failed, reverting./composer.json and./composer.lock to their original content.

Finally, I got the solution. I just added composer.json and run composer update. It has successfully updated

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM