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

Song1356 次浏览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)

提交评论

请登录后评论

用户评论

    当前暂无评价,快来发表您的观点吧...

更多相关好文

    当前暂无更多相关好文推荐...