October 17, 2020

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

$ composer update

Solution #2: Update or rollback your Composer

$ composer self-update
$ composer self-update --rollback

Did it worked?


Hello! My name is Jian Jye and I work on Laravel projects as my main job. If my article was helpful to you, a shoutout on Twitter would be awesome! I'm also available for hire if you need any help with Laravel. Contact me.