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

Song666 次浏览0个评论2020年07月30日
Laravel从本地到线上部署,执行phpartisan提示如下报错: phpartisan PHPWarning:require(/var/www//vendor/ramsey/uuid/src/functions.php):failedtoope

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)

请登录后评论
    当前暂无评价,快来发表您的观点吧...
    公告提示
    本站主要用于学习交流Laravel技术,分享Laravel优秀案例;同时非常欢迎大家投稿哦!如果有招聘信息也可以联系我我帮忙发布哦!