laravel/uiをインストール → 失敗した時のログ
composer require laravel/ui
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Using version ^4.2 for laravel/ui
./composer.json has been updated
Running composer update laravel/ui
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.Problem 1
– Root composer.json requires laravel/ui ^4.2 -> satisfiable by laravel/ui[v4.2.0, v4.2.1, v4.2.2, 4.x-dev].
– laravel/ui[v4.2.0, …, 4.x-dev] require illuminate/console ^9.21|^10.0 -> found illuminate/console[v9.21.0, …, 9.x-dev, v10.0.0, …, 10.x-dev] but these were not loaded, likely because it conflicts with another require.You can also try re-running composer require with an explicit version constraint, e.g. “composer require laravel/ui:*” to figure out if any version is installable, or “composer require laravel/ui:^2.1” if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
4.2が相性の問題で入れられないから「composer require laravel/ui:*」を実行するか、2.1をいれたらどうかと促されている?
なので「composer require laravel/ui:*」を実行する。
composer require laravel/ui:*
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
./composer.json has been updated
Running composer update laravel/ui
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
– Locking laravel/ui (v3.4.6)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
– Downloading laravel/ui (v3.4.6)
– Installing laravel/ui (v3.4.6): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover –ansi
Discovered Package: laravel/sail
Discovered Package: laravel/sanctum
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: spatie/laravel-ignition
Package manifest generated successfully.
78 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish –tag=laravel-assets –ansi –force
No publishable resources for tag [laravel-assets].
Publishing complete
これでlaravel/uiがインストールされたっぽい。
「composer require laravel/ui:3.4.6」…を実行してインストールしてもいいと思われる。
※laravel/uiのメジャーバージョンの違いで何が異なるのかは不明。
コメント