skip to Main Content

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


  1. Chosen as BEST ANSWER

    To solve the problem, I had to update the composer by running the commands-

    composer clearcache

    composer selfupdate


  2. To solve this problem. simple update your composer by below command

    composer self-update
    

    and try again. this will solve your issue

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search