无法打开所需的' / bootstrap /../ vendor / autoload.php' (include_path ='。:/ usr / share / php')在第17行的{bootstrap/autoload.php

时间:2018-02-28 15:45:50

标签: php laravel composer-php

我已经从这个svn repo检查了laravel项目。现在,当我运行php artisan serve composer updatecomposer install命令

时出现此错误

脚本php artisan clear-compiled处理带有错误的

返回的pre-update-cmd事件
  [RuntimeException]                                                           
  Error Output: PHP Warning:  require(/osmall/trunk/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /trunk/bootstrap/autoload.php on line 17         
  PHP Fatal error:  require(): Failed opening required '/osmall/trunk/bootstrap/../vendor/autoload.php'(include_path='.:/usr/share/php') in /osmall/trunk/bootstrap/autoload.php on line 17 

如果我运行php composer.phar install命令

,我会收到上述消息
Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255

如果我执行composer dump-autoload -o然后运行更新或安装命令,那么

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




[RuntimeException]                                                           
  Error Output: PHP Fatal error:  Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /osmall/trunk/bootstrap/app.php:14                                                                         
  Stack trace:                                                                 
  #0 /osmall/trunk/artisan(18): require_once()                
  #1 {main}                                                                    
    thrown in /osmall/trunk/bootstrap/app.php on line 14

附加信息
1.我的作曲家版本是1.0.0-beta2
我安装了php 5.6和7。
3.我正在运行ubuntu

请有人帮助我。

0 个答案:

没有答案