更新作曲家(Laravel 5.1)后找不到类Illuminate \ Support \ Composer

mkm*_*str 1 php laravel composer-php laravel-5.1

我在Laravel 5.1中有一个项目,并且更新了作曲家,更新后立即出现以下错误:

> php artisan clear-compiled

  [ReflectionException]                             
  Class Illuminate\Support\Composer does not exist  

Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1
Run Code Online (Sandbox Code Playgroud)

我在Internet上发现的所有可用信息都适用于Laravel 5.2,我的是Laravel 5.1。

我必须提到,所有php artisan命令均不起作用,返回相同的错误。

为什么会发生这种情况,我该如何解决?

Eme*_*bah 5

运行composer update --no-scripts以删除不存在的软件包。