How to fix undefined index: name in PackageManifest.php line 131 error with Composer
If you encountered this error, there are 2 things you can try. Personally solution #1 worked for me but I have seen suggestions of solution #2 so maybe it is the right solution for you.
Solution #1: Update all your packages
Solution #2: Update or rollback your Composer
$ composer self-update
$ composer self-update --rollback
Did it worked?