我在Laravel 4
中更新作曲家时会出现以下错误Nothing to install or update
Reading ./composer.lock
Generating autoload files
Executing command (CWD): php artisan clear-compiled
Fatal error: Class 'IlluminateFoundationApplication' not found in C:xampphtdocscfm_mgt_sysbootstrapstart.php on line 14
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
Exception trace:
() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:177
ComposerEventDispatcherEventDispatcher->doDispatch() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:91
ComposerEventDispatcherEventDispatcher->dispatchScript() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:342
ComposerInstaller->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/UpdateCommand.php:140
ComposerCommandUpdateCommand->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
SymfonyComponentConsoleCommandCommand->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
SymfonyComponentConsoleApplication->doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
SymfonyComponentConsoleApplication->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:146
ComposerConsoleApplication->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
SymfonyComponentConsoleApplication->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:83
ComposerConsoleApplication->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:43
require() at C:ProgramDataComposerSetupbincomposer.phar:25
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|v
vv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]
请有人可以帮助解决此问题。预先感谢
这不是作曲家问题,作曲家只会从Laravel Framework中运行上Update命令。
尝试" PHP Artisan Clear-Compiled",您会遇到相同的错误。
检查您的Laravel安装(此问题应该有所帮助:我的作曲家不会与Laravel 4完全更新,它与Artisan陷入困境)
delete the composer.lock file
run
composer dump-autoload
php artisan dump-autoload
then
composer update