php - Laravel 5 无法打开所需的 bootstrap/../vendor/autoload.php

标签 php laravel-5

我最近通过 composer 安装了 Laravel 5。我尝试使用 artisan 创建一个新 Controller ,但出现以下错误:

bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.

我错过了什么吗?

最佳答案

使用 --no-scripts 运行 composer

composer update --no-scripts  

这将解决问题。我在 Mac 和 Linux 上试过这个。

关于php - Laravel 5 无法打开所需的 bootstrap/../vendor/autoload.php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28468625/

相关文章:

php - Ucfirst 不适用于非英文字符

php - 从单行 SQL 中获取键和值

php - Symfony 2.0 在实体内部获取服务

laravel-5 - 如何在laravel的数据透视表中获取created_at

php - 在 laravel Controller 中包含一个文件?

php - 在某个字符出现 n 次后选择的正则表达式

php - Yii2。小部件和操作

php - PDO 异常 : SQLSTATE[HY000]: General error: 2030 with MemSQL setting via MySQL Driver in 'database.php'

php - 如何过滤 Eloquent 结果并保留一些特定的列(有关系)

php - localhost :8000 not working. 它只是无限加载?