Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

TimiAde's avatar

laravel 10 installation issue

i tried creating a project in laravel with the code

composer create-project laravel/laravel laragigs

i get the errors

Problem 1
    - laravel/framework[v10.10.0, ..., v10.12.0] require composer-runtime-api ^2.2 -> found composer-runtime-api[2.1.0] but it does not match the constraint.
    - Root composer.json requires laravel/framework ^10.10 -> satisfiable by laravel/framework[v10.10.0, v10.10.1, v10.11.0, v10.12.0].
0 likes
3 replies
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

The error message suggests that the version of composer-runtime-api installed on the system is not compatible with the version required by laravel/framework. To fix this issue, you can try updating composer to the latest version and then running the create-project command again.

To update composer, run the following command in your terminal:

composer self-update

Once composer is updated, try running the create-project command again:

composer create-project laravel/laravel laragigs

If the issue persists, you can try specifying the version of laravel/framework in the create-project command. For example:

composer create-project laravel/laravel laragigs "10.*"

This will install the latest version of laravel/framework in the 10.x branch.

1 like
Sam425's avatar

composer clearcache

composer selfupdate

tisuchi's avatar

@timiade Doesn't it help you to run as @laryai suggested?

composer create-project laravel/laravel laragigs --prefer-dist "10.*"

Please or to participate in this conversation.