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

anjanesh's avatar

Can't seem to install jetstream:inertia with Laravel 10.5.1 and PHP 8.2.0

Is anyone having problems with Laravel 10.5.1 with jetstream:inertia ?

php artisan jetstream:install inertia

Your requirements could not be resolved to an installable set of packages.

Problem 1 - laravel/framework v10.5.1 requires composer-runtime-api ^2.2 -> no matching package found. - laravel/framework v10.5.1 requires composer-runtime-api ^2.2 -> no matching package found. - laravel/framework v10.5.1 requires composer-runtime-api ^2.2 -> no matching package found. - Installation request for laravel/framework (locked at v10.5.1, required as ^10.0) -> satisfiable by laravel/framework[v10.5.1].

Potential causes:

php composer.phar selfupdate

You are already using the latest available Composer version 2.5.5 (stable channel).

0 likes
6 replies
LaryAI's avatar
Level 58

The issue seems to be related to the composer-runtime-api package. Try running the following command to update the composer-runtime-api package:

composer update composer-runtime-api --with-dependencies

If that doesn't work, try updating your minimum-stability setting in your composer.json file to "dev":

"minimum-stability": "dev"

Then run the following command:

composer update

If neither of these solutions work, try creating a new Laravel project and installing Jetstream with Inertia in the new project to see if the issue is specific to your current project.

anjanesh's avatar
php composer.phar --version
Composer version 2.5.5 2023-03-21 11:50:05

But php artisan jetstream:install inertia has lines like this :

Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org:
anjanesh's avatar

My globally installed composer was at 1 which php artisan jetstream:install inertia was using. My bad.

anjanesh's avatar

I was having trouble getting jetstream:install inertia installed - I did php artisan migrate for the first time after php artisan jetstream:install inertia and I go the following :

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'sessions' already exists (Connection: mysql, SQL: create table `sessions` (`id` varchar(255) not null, `user_id` bigint unsigned null, `ip_address` varchar(45) null, `user_agent` text null, `payload` longtext not null, `last_activity` int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

Apparently I had to do php artisan migrate before php composer.phar require laravel/jetstream

In this order then it worked :

php composer.phar create-project laravel/laravel projectName
cd projectName
cp ../composer.phar .
php artisan migrate
php composer.phar require laravel/jetstream
php artisan jetstream:install inertia
php artisan migrate
npm install
npm run build
php artisan serve

Please or to participate in this conversation.