Laravel 5无法打开所需的bootstrap /../ vendor / autoload.php(Laravel 5 Failed opening required bootstrap/../vendor/autoload.php)
最近我通过作曲家安装了Laravel 5。 我尝试使用artisan创建一个新的控制器,我得到以下错误:
自举/../供应商/ autoload.php。 无法打开流:没有这样的文件或目录。 “供应商”文件夹不存在。
我错过了什么吗?
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. Failed to open stream: No such file or directory. The "vendor" folder does not exist.
Am I missing something?
最满意答案
用--no脚本运行作曲者
composer update --no-scripts这将解决问题。 我在Mac和Linux上尝试过。
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 updatenow the vendor folder was created.
更多推荐
发布评论