When trying to install laravel 10, I am getting this error-
laravel/framework[v10.0.0, …, v10.0.3] require composer-runtime-api
^2.2 -> found composer-runtime-api[2.1.0] but it does not match the
constraint.
When trying to install laravel 10, I am getting this error-
laravel/framework[v10.0.0, …, v10.0.3] require composer-runtime-api
^2.2 -> found composer-runtime-api[2.1.0] but it does not match the
constraint.
2
Answers
To solve the problem, I had to update the composer by running the commands-
composer clearcache
composer selfupdate
To solve this problem. simple update your composer by below command
and try again. this will solve your issue