how to solve error 127 when installing laravel/ui package?

32 Views Asked by At

I am trying to install laravel/ui package using composer and I am facing this error:

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

I tried to add this line to the composer.json file:

"extra": {
    "laravel": {
        "dont-discover": [
          "laravel/ui",
        ]
    }
},

But it is not working

0

There are 0 best solutions below