我正在使用 MacO。并有一个 Laravel 项目。跑步composer update
产生
Class 'PackageVersions\Versions' not found
运行composer install同样的事情。乃至php artisan
没有任何其他东西会产生相同的结果。唯一没有产生错误的是composer update --no-scripts
我的php版本是7.4,Laravel版本是5.8。 Composer版本是2.3.2
这是更多来自错误产生之前的日志composer update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In base.php line 145:
Class 'PackageVersions\Versions' not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
这是我的作曲家包的列表,需要参数
"require": {
"php": "^7.1.3",
"doctrine/dbal": "^2.9",
"eduardokum/laravel-mail-auto-embed": "^1.0",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0"
},