我是 Laravel 的新手,一直在尝试安装 Laravel,浪费了三个小时可惜没有成功.当我通过公共目录访问时,出现以下错误:
I am a newbie to Laravel, have been trying to install Laravel, wasted three hours unfortunately didn't work. When I access through public directory, I get these errors:
警告:需要(C:wampwwwlaravelootstrap/../vendor/autoload.php):无法打开流:C:wampwwwlaravelootstrap 中没有这样的文件或目录第 17 行的 autoload.php调用栈
Warning: require(C:wampwwwlaravelootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:wampwwwlaravelootstrapautoload.php on line 17 Call Stack
还有以下内容:
致命错误:require():在 C 中打开所需的 'C:wampwwwlaravelootstrap/../vendor/autoload.php' (include_path='.;C:phppear') 失败
Fatal error: require(): Failed opening required 'C:wampwwwlaravelootstrap/../vendor/autoload.php' (include_path='.;C:phppear') in C
你安装 Laravel 的依赖了吗?当您在工作环境(例如 htdocs)中解压缩框架时,您必须使用命令 php composer.phar install
安装必要的依赖项(假设您已经安装了 composer 和 git).完成后,您将能够看到框架的主页.
Did you install Laravel's dependencies? When you unzip the framework in your work environment (i.g. htdocs) you must install the necesary dependencies with the command php composer.phar install
(assuming you have installed composer and git). When that is done, you will be able to see the home page of the framework.
这篇关于为什么“没有这样的文件或目录... autoload.php"?访问 Laravel 应用程序时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!