laravel - 我想在 localhost 上安装 laravel 项目,但遇到错误如何解决?
问题描述
警告:需要(C:\xampp\htdocs\blog\public/../vendor/autoload.php):无法打开流:C:\xampp\htdocs\blog\public\index.php 中没有这样的文件或目录在第 24 行
致命错误:require():在 C:\xampp 中打开所需的 'C:\xampp\htdocs\blog\public/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') 失败\htdocs\blog\public\index.php 在第 24 行
解决方案
在命令行上转到此“项目”的根目录并键入composer install
以让 composer 安装此“项目”的依赖项。
推荐阅读
- python - 带有前导/尾随斜杠且不带斜杠的路线
- php - 使用php根据用户输入仅匹配数据库中字段的某些部分从数据库中获取所有数据
- python - 使用 __init__.py 修改 sys 路径是个好主意吗?
- hana - 将 XML 数据从源复制到 SAP HANA 表
- linux - 在 bash 中将文本附加到具有模式匹配名称的文件
- c# - 您可以从 C# 控制台应用程序写入 CRM 365 跟踪日志吗?
- unity3d - 我无法从父对象中选择单个子对象
- java - 严重:使用 Java 类版本 53.0 运行,但 Jenkins 需要 52.0 错误,通过命令提示符显示为“java -jar jenkins.war”
- javascript - 将最后一个下拉列表从 3 个下拉列表更改后,所有 3 个下拉列表的副本完全没有第一个下拉列表值
- php - php iframe 到 amp-youtube