Cannot install Jetstream into a new project
InFerYes opened this issue · comments
Jetstream Version
4.2.2
Jetstream Stack
Livewire
Laravel Version
v10.3.2
PHP Version
8.3.2
Database Driver & Version
No response
Description
When I run composer require laravel/jetstream
I get the message Your requirements could not be resolved to an installable set of packages.
.
I'm running on Arch Linux with an up to date system. Composer is version 2.6.6. I have no special changes with regards to PHP my system, I am new to PHP development. I have toyed with laravel breeze, which does install properly, but now want to play with jetstream but run into this issue.
Here is the full output:
./composer.json has been updated
Running composer update laravel/jetstream
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/jetstream[v4.1.1, ..., v4.2.2] require laravel/fortify ^1.19 -> satisfiable by laravel/fortify[v1.19.0, v1.19.1, v1.20.0].
- laravel/jetstream[v2.15.0, ..., v2.16.2, v3.0.0, ..., v3.3.3, v4.0.0, ..., v4.1.0] require laravel/fortify ^1.15 -> satisfiable by laravel/fortify[v1.15.0, ..., v1.20.0].
- laravel/fortify[v1.16.0, ..., v1.20.0] require bacon/bacon-qr-code ^2.0 -> satisfiable by bacon/bacon-qr-code[2.0.0, ..., 2.0.8].
- laravel/jetstream[v0.0.1, ..., v0.7.3, v1.0.0, ..., v1.5.3] require php ^7.3 -> your php version (8.3.2) does not satisfy that requirement.
- laravel/jetstream[v1.6.0, ..., v1.6.7, v2.0.0, ..., v2.5.1] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- laravel/jetstream[v1.7.0, ..., v1.7.2, v2.6.0, ..., v2.6.6] require illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- laravel/jetstream[v2.6.7, ..., v2.9.0] require illuminate/support ^8.37|^9.0 -> found illuminate/support[v8.37.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- laravel/jetstream[v2.10.0, ..., v2.10.1] require illuminate/support ^9.0 -> found illuminate/support[v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- laravel/jetstream[v2.10.2, ..., v2.14.1] require illuminate/console ^9.21 -> found illuminate/console[v9.21.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- laravel/fortify[v1.10.2, ..., v1.15.0] require illuminate/support ^8.82|^9.0 -> found illuminate/support[v8.82.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- bacon/bacon-qr-code[2.0.0, ..., 2.0.2] require php ^7.1 -> your php version (8.3.2) does not satisfy that requirement.
- bacon/bacon-qr-code[2.0.3, ..., 2.0.8] require ext-iconv * -> it is missing from your system. Install or enable PHP's iconv extension.
- Root composer.json requires laravel/jetstream * -> satisfiable by laravel/jetstream[v0.0.1, ..., v0.7.3, v1.0.0, ..., v1.7.2, v2.0.0, ..., v2.16.2, v3.0.0, ..., v3.3.3, v4.0.0, ..., v4.2.2].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-iconv` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/jetstream:*" to figure out if any version is installable, or "composer require laravel/jetstream:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The solution was to enable iconv in /etc/php/php.ini
(search for and uncomment extension=iconv
). I would like this info to be out there should other new enthusiasts encounter this issue.
Steps To Reproduce
composer create-project laravel/laravel exampleapp
cd exampleapp
composer require laravel/jetstream