Script@php artisan package:discover --ansi handling the post-autoload-dump event Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 ``` //laravel 5.8 执行 : composer innstall //报错如下 > 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 ``` 解决方案 ``` vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php文件中将 // $packages = json_decode($this->files->get($path), true); //替换为如下代码 $installed = json_decode($this->files->get($path), true); $packages = $installed['packages'] ?? $installed; ``` 然后再执行 composer install 就OK了 亲测有效
《Script@php artisan package:discover --ansi handling the post-autoload-dump event》上暂无评论!