【解决】laravle7.* 提示No such file autoload_real.php on line 55
Song •
1436 次浏览 •
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>]...
问题原因是composer版本过低,可以查看ubuntu升级composer到最新版本(2.0-dev)
用户评论
当前暂无评价,快来发表您的观点吧...
更多相关好文
当前暂无更多相关好文推荐...
-
laravel中distinct()的使用方法与去重 2017-09-11
-
Laravel将view缓存为静态html,laravel页面静态缓存 2021-10-09
-
[ laravel爬虫实战--基础篇 ] guzzle描述与安装 2017-11-01
-
[ 配置教程 ] 在ubuntu16.04中部署LNMP环境(php7+maridb且开启maridb远程以及nginx多域名访问 )并配置laravel环境 2017-07-18
-
花生壳绑定ubuntu服务器? 2024-08-23
热门文章
-
花生壳绑定ubuntu服务器? 2024-08-23
-
Laravel模型更新全表如何实现? 2024-03-11
-
php图片转为二进制数据的方法 2023-10-23
-
Jquery如何监听动态创建元素的点击事件? 2023-09-08
-
所以SheetJS实现table导出数据为Excel 2023-09-05
提交评论