Laravel 5 无法打开所需的引导程序/../vendor/autoloa
本文介绍了Laravel 5 无法打开所需的引导程序/../vendor/autoload.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近通过 Composer 安装了 Laravel 5.我尝试使用 artisan 创建一个新控制器,但出现以下错误:
I have recently installed Laravel 5 via composer. I tried creating a new controller using artisan and I get the following error:
bootstrap/../vendor/autoload.php.无法打开流:没有这样的文件或目录.供应商"文件夹不存在.
bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.
我错过了什么吗?
推荐答案
原来我没有在我的 php.ini 中启用 openssl,所以当我用 Composer 创建我的新项目时,它是从源代码安装的.我改变了它并运行
Turns out I didn't enable openssl in my php.ini so when I created my new project with composer it was installed from source. I changed that and ran
composer update
现在已经创建了供应商文件夹.
now the vendor folder was created.
这篇关于Laravel 5 无法打开所需的引导程序/../vendor/autoload.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!