laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.93k stars 809 forks source link

Problems installing Jetstram with sail #1484

Closed sobhan-m94 closed 2 months ago

sobhan-m94 commented 2 months ago

Jetstream Version

5

Jetstream Stack

Inertia

Laravel Version

11

PHP Version

8.3

Database Driver & Version

No response

Description

I have troubles when installing Jetstream.

sail@baf19bcb8d01:/var/www/html$ composer --version
Composer version 2.7.4 2024-04-22 21:17:03
PHP version 8.3.6 (/usr/bin/php8.3)
Run the "diagnose" command to get more detailed diagnostics output.
sail@baf19bcb8d01:/var/www/html$ php -v
PHP 8.3.6 (cli) (built: Apr 11 2024 20:23:38) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
    with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans
sail@baf19bcb8d01:/var/www/html$ composer require laravel/jetstream 
./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[v0.0.1, ..., v0.7.3, v1.0.0, ..., v1.5.3] require php ^7.3 -> your php version (8.3.6) 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/jetstream[v2.15.0, ..., v2.16.2, v3.0.0, ..., v3.0.2] require illuminate/console ^9.21|^10.0 -> found illuminate/console[v9.21.0, ..., v9.52.16, v10.0.0, ..., v10.48.10] but these were not loaded, likely because it conflicts with another require.
    - laravel/jetstream[v3.1.0, ..., v3.2.5] require illuminate/console ^10.0 -> found illuminate/console[v10.0.0, ..., v10.48.10] but these were not loaded, likely because it conflicts with another require.
    - laravel/jetstream[v3.3.0, ..., v3.3.3, v4.0.0, ..., v4.3.1] require illuminate/console ^10.17 -> found illuminate/console[v10.17.0, ..., v10.48.10] but these were not loaded, likely because it conflicts with another require.
    - laravel/jetstream[v5.0.0, ..., v5.0.5] require mobiledetect/mobiledetectlib ^4.8 -> found mobiledetect/mobiledetectlib[4.8.01, ..., 4.8.06] but the package is fixed to 2.8.45 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - 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.3.1, v5.0.0, ..., v5.0.5].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
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.

Steps To Reproduce

Same as above.

driesvints commented 2 months ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.