【解决】laravle7.* 提示No such file autoload_real.php on line 55

Song • 234 次浏览 • 0 个回复 • 2020年07月30日

Laravel从本地到线上部署,执行php artisan提示如下报错:

php artisan
PHP Warning:  require(/var/www/***/vendor/ramsey/uuid/src/functions.php): failed to open stream: No such file or directory in /var/www/***/vendor/composer/autoload_real.php on line 55
PHP Fatal error:  require(): Failed opening required '/var/www/***/vendor/ramsey/uuid/src/functions.php' (include_path='.:/usr/share/php') in /var/www/***/vendor/composer/autoload_real.php on line 55

问题的原因

此报错原因为 composer install,需要执行composer install安装软件包:

composer install

但是执行确有了新的报错:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file

  [ErrorException]                                                                         
  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?  

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

\屏幕快照 2020-07-30 19.00.06.png

问题原因是composer版本过低,可以查看ubuntu升级composer到最新版本(2.0-dev)


原创文章,转载请注明 :【解决】laravle7.* 提示No such file autoload_real.php on line 55 - Laravel学习网
原文出处: https://phpartisan.cn/news/142.html
问题交流群 :168117787
提交评论
要回复文章请先登录注册
用户评论
  • 没有评论
[ 配置教程 ] 在ubuntu16.04中部署LNMP环境(php7+maridb且开启maridb远程以及nginx多域名访问 )并配置laravel环境 ubuntu升级composer到最新版本(2.0-dev)