Laravel 10 - laravel/framework[v10.0.0] require composer-runtime-api ^2.2 - Solved
Yesterday i was trying to download laravel 10 project using composer command i found following error:
"
Problem 1
- 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.
- Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework [v10.0.0, v10.0.1, v10.0.2, v10.0.3].
"
Then i research and found that i had old composer version and i need to update it using the below command:
If you have same problem then you need to run following two commands and fix the problem:
Solution:
composer clearcache
composer selfupdate
I hope it can help you...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- Laravel 10 Generate Test or Dummy Data using Factory Tinker
- Laravel 10 REST API with Passport Authentication Tutorial
- How to Get Last Executed Query in Laravel 10?
- Laravel 10 Select2 Ajax Autocomplete Search Example
- Laravel 10 Get Client IP Address Example
- Laravel 10 Cron Job Task Scheduling Tutorial
- Laravel 10 Clear Cache of Route, View, Config, Event Commands
- Laravel 10 Send Email using Queue Example
- Laravel 10 Guzzle Http Request Example
- Laravel 10 Change Date Format Examples
- Laravel 10 REST API Authentication using Sanctum Tutorial
- Laravel 10 Ajax Form Validation Example Tutorial
- Laravel 10 Image Upload Example Tutorial
- Laravel 10 CRUD Application Example Tutorial