在我通过composer-create项目laravel/laravel获得laravel 5的新安装后,我试图通过composer更新composer.json文件,但总是收到这个错误。有人知道为什么?
[RuntimeException]
Error Output: PHP Fatal error: Call to undefined method IlluminateFoundationApplicat
ion::getCachedCompilePath() in /home/vagrant/Code/zadarplus/vendor/laravel/framework/sr
c/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28
PHP Stack trace:
PHP 1. {main}() /home/vagrant/Code/zadarplus/artisan:0
PHP 2. IlluminateFoundationConsoleKernel->handle() /home/vagrant/Code/zadarplus/ar
tisan:36
PHP 3. SymfonyComponentConsoleApplication->run() /home/vagrant/Code/zadarplus/vend
or/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:94
PHP 4. SymfonyComponentConsoleApplication->doRun() /home/vagrant/Code/zadarplus/ve
ndor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 5. SymfonyComponentConsoleApplication->doRunCommand() /home/vagrant/Code/zadar
plus/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 6. IlluminateConsoleCommand->run() /home/vagrant/Code/zadarplus/vendor/symfony/
console/Symfony/Component/Console/Application.php:874
PHP 7. SymfonyComponentConsoleCommandCommand->run() /home/vagrant/Code/zadarplus/
vendor/laravel/framework/src/Illuminate/Console/Command.php:101
PHP 8. IlluminateConsoleCommand->execute() /home/vagrant/Code/zadarplus/vendor/symf
ony/console/Symfony/Component/Console/Command/Command.php:257
PHP 9. IlluminateContainerContainer->call() /home/vagrant/Code/zadarplus/vendor/lar
avel/framework/src/Illuminate/Console/Command.php:115
PHP 10. call_user_func_array:{/home/vagrant/Code/zadarplus/vendor/compiled.php:925}()
/home/vagrant/Code/zadarplus/vendor/compiled.php:925
PHP 11. IlluminateFoundationConsoleClearCompiledCommand->fire() /home/vagrant/Code/
zadarplus/vendor/compiled.php:925
在"编译"过程中似乎出现了问题。
删除vendor/compiled.php
并再次运行composer更新。
如果没有成功,也可以删除storage/framework/compiled.php
。