Why quot;no such file or directory ... autoload.phpquot; when accessing Laravel app?(为什么“没有这样的文件或目录... autoload.php?访问 Laravel 应用程序时?)
问题描述
我是 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 应用程序时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么“没有这样的文件或目录... autoload.php"?访问 Laravel 应用程序时?


- 如何定位 php.ini 文件 (xampp) 2022-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- Laravel 仓库 2022-01-01