====== 2021.03.01 Composer 2.0 でエラー ======
[[50_dialy:2021:02:24]]
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In PackageManifest.php line 122:
Undefined index: name
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
In PackageManifest.php line 122:
Undefined index: name
===== 対応 =====
結局composerをversion 1 に戻した
# composer self-update --1
Warning: You forced the install of 1.10.20 via --1, but 2.0.11 is the latest stable version. Updating to it via composer self-update --stable is recommended.
Upgrading to version 1.10.20 (1.x channel).
Use composer self-update --rollback to return to version 2.0.10
# composer --version
Composer version 1.10.20 2021-01-27 15:41:06
{{tag>日記 laravel}}