首页 > 解决方案 > 我想在 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 行

标签: laravel

解决方案


在命令行上转到此“项目”的根目录并键入composer install以让 composer 安装此“项目”的依赖项。


推荐阅读