我尝试通过image intervention homepage安装中的composer安装干预/图像类,但结束时出现以下错误:
F:\Laravel\ecommerce>composer require intervention/image
Using version ~2.1 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::getCachedCompil
ePath()
Script php artisan clear-compiled handling the post-update-cmd event returned wi
th an error
[RuntimeException]
Error Output:
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update]
[--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-
packages] [packages1] ... [packagesN]
试图研究相同的错误,但没有发现任何错误。这有什么问题?以及如何解决这个问题:)?
由于
答案 0 :(得分:3)
升级Laravel版本时出现此错误。
删除vendor/compiled.php
将解决此问题。