composer install 报错Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 PackageManifest.php: Undefined index: name

1.可能是composer.lock中没有记录的第三方扩展,但是已经创建了服务提供者provider等,

2.在

vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php文件中将
$installed = json_decode($this->files->get($path), true);
$packages = $installed[‘packages‘] ?? $installed;

composer install 报错Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1   PackageManifest.php: Undefined index: name

 

 修改完再跑composer install就成功了

composer install 报错Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1   PackageManifest.php: Undefined index: name

 

不过这也算是修改了核心文件不过之后后面不出其他问题就可以,可以正常访问项目

 

 

composer install 报错Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 PackageManifest.php: Undefined index: name

上一篇:MongoDB-java-api


下一篇:梳理AMD、CMD、CommonJS、ES6 Module的区别