Laravel 5无法打开所需的bootstrap /../ vendor / autoload.php(Laravel 5 Failed opening required bootstrap/../

编程入门 行业动态 更新时间:2024-10-27 08:26:59
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 update

now the vendor folder was created.

更多推荐

本文发布于:2023-04-28 00:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329626.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:所需   无法打开   vendor   bootstrap   Laravel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!