skip to Main Content

I have clone my project from heroku and am using wampserver and composer version 2. Can someone help me to understand why am I get this error.

In PackageManifest.php line 131:

Undefined index: name

Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1

2

Answers


  1. I think I had the exact same error the other day, and for me, the solution was to downgrade the composer with:

    composer self-update --1
    

    Don’t know if you will accept this as an answer, but that’s what worked for me.

    Login or Signup to reply.
  2.  composer update laravel/framework
    

    The above step solves the issue.
    I had same issue with my composer installer, after updating composer it works
    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search