我正在尝试在代客汽车上安装Laravel项目。
我收到此错误:
Warning: require(/Users/davina/Developer/learn-laravel-graphql/public/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/davina/Developer/learn-laravel-graphql/public/index.php on line 24
Fatal error: require(): Failed opening required '/Users/davina/Developer/learn-laravel-graphql/public/../vendor/autoload.php' (include_path='.:/usr/local/Cellar/php/7.3.1/share/php/pear') in /Users/davina/Developer/learn-laravel-graphql/public/index.php on line 24
尝试链接项目根目录或/public
文件夹会导致上述错误,而不是Laravel的默认欢迎屏幕。
我该如何解决?
答案 0 :(得分:0)
尝试导航到项目文件夹的根目录并运行命令:
这些步骤全部为我准备好:)
为我解决问题。