- 1. 概要
- 2. アンインストール
- 3. やってみる
- 4. 参考サイト
1. 概要
そぉいえば、アンインストールすること、なかったな(2025年8月22日)。
そういう機会があったので、メモを残しておきます。
2. アンインストール
アンインストールの際は、下記のコマンドを実行します。
composer remove vender_name/package_name
3. やってみる
「Laravel」に「jenssegers/agent」をインストールしたのですが、「Mobile_Detect 4.8」が、インストールされるかと思いきや。
「Mobile_Detect 2.8」だったのです。
「Mobile_Detect 4.8」は、「Laravel」のパッケージにはなっていないらしい。
ちゅうことで、アンインストールします。
プロジェクトディレクトリで。
composer remove jenssegers/agent
./composer.json has been updated
Running composer update jenssegers/agent
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 0 updates, 3 removals
- Removing jaybizzle/crawler-detect (v1.3.5)
- Removing jenssegers/agent (v2.6.4)
- Removing mobiledetect/mobiledetectlib (2.8.45)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 3 removals
- Removing mobiledetect/mobiledetectlib (2.8.45)
- Removing jenssegers/agent (v2.6.4)
- Removing jaybizzle/crawler-detect (v1.3.5)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel/sail ............................................................................................. DONE
laravel/sanctum .......................................................................................... DONE
laravel/tinker ........................................................................................... DONE
nesbot/carbon ............................................................................................ DONE
nunomaduro/collision ..................................................................................... DONE
nunomaduro/termwind ...................................................................................... DONE
spatie/laravel-ignition .................................................................................. DONE
81 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
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found.
依存していて、使われなくなったものは、同時に削除されるらしい。
4. 参考サイト
本ページは、「ChatGPT」くんを参考にさせていただきました。
|
|