简体   繁体   中英

Composer/Laravel fresh install error

I've got a brand new laravel installation on DigitalOcean, which I'm attempting to run a basic `composer update' on. However, I'm seeing the following error come up every time I try to update. I can't solve the problem with composer cacheclear, deleting the vendor/compiled.php file, or even reinstalling the entire framework.

I don't understand exactly what the error is in the first place, so I'm a bit lost. Any tips on what's going on?

Script php artisan clear-compiled handling the post-update-cmd event returned with an error


[RuntimeException]
  Error Output: PHP Fatal error:  Call to undefined method Illuminate\Foundat
  ion\Application::getCachedCompilePath() in /var/www/html/production/vendor/
  laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.ph
  p on line 28

Delete the vendor/compiled.php and run composer update. Source: https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install?page=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM