Laravel 5.1 Composer安装错误



当运行composer install时,我得到以下错误:

php artisan clear-compiled
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to AppExceptionsHandler::report() must be an instance of Exception, instance of Error given, called in /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/vagrant/Code/courtesy-sys/app/Exceptions/Handler.php:25
Stack trace:
#0 /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): AppExceptionsHandler->report(Object(Error))
#1 [internal function]: IlluminateFoundationBootstrapHandleExceptions->handleException(Object(Error))
#2 {main}
thrown in /home/vagrant/Code/courtesy-sys/app/Exceptions/Handler.php on line 25

[SymfonyComponentDebugExceptionFatalErrorException]                                                                                                                                                         
Uncaught TypeError: Argument 1 passed to AppExceptionsHandler::report() must be an instance of Exception, instance of Error given, called in /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/vagrant/Code/courtesy-sys/app/Exceptions/Handler.php:25
Stack trace:                                                                                                                                                                                                    
#0 /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): AppExceptionsHandler->report(Object(Error))                                         
#1 [internal function]: IlluminateFoundationBootstrapHandleExceptions->handleException(Object(Error))                                                                                                        
#2 {main}                                                                                                                                                                                                       
thrown                                                                                                                                                                                                        

Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255

是否有人有类似的问题,可以为我提供解决方案。

试一试:

composer install --no-scripts

相关内容

  • 没有找到相关文章

最新更新