问题描述
我是 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 应用程序时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)