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] [--] []...
【解决】laravle7.* 提示No such file autoload_real.php on line 55 - Laravel学习网
原文出处: https://phpartisan.cn/news/142.html
问题交流群 :168117787