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 应用程序时?
基础教程推荐
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何替换eregi() 2022-01-01
