laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
31.82k stars 10.77k forks source link

fruitcake/php-cors v13 needed but not match #51201

Closed bzqadmin closed 2 months ago

bzqadmin commented 2 months ago

Laravel Version

11

PHP Version

8.2.13

Database Driver & Version

No response

Description

when I create a new project of laravel11(composer or laravel new),I get these error messages :` Problem 1

Steps To Reproduce

` Problem 1

driesvints commented 2 months ago

No steps to reproduce.

laduniestu commented 1 month ago

Screenshot 2024-05-14 at 02 25 50

i just had this error when installing new laravel project

onnoink commented 1 month ago

It seems that you are using an unofficial packagelist source that hasn't synchronized the latest 1.3.0 tags yet. You can try replacing your packagelist source with the default official source (url: https://repo.packagist.org/).

gspgsp commented 3 days ago

i meet the same problems: laravel/framework[v11.9.0, ..., v11.9.2] require fruitcake/php-cors ^1.3 -> found fruitcake/php-cors[dev-feat-setOptions, dev-master, dev-main, dev-test-8.2, v0.1.0, v0.1.1, v0.1.2, v1.0-alpha1, ..., 1.2.x-dev (alias of dev-master)] but it does not match the constraint

solutions: just change the packagelist to the official, maybe your packagelist has been changed to others, such as aliyun mirrors, with this command: composer config -g --unset repos.packagist and then run composer install again.