最新消息:

Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire

编程 eben 293浏览 0评论

错误信息:`Warning: require(/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17

Fatal error: require(): Failed opening required ‘/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php’ (include_path=’.:/usr/local/lib/php’) in /http/www.mywakavLee.cn/bootstrap/autoload.php on line 17`

原因:网站根目录下缺少vendor这个存放laraver依赖包的目录
解决方法:使用composer install进行安装(没有安装过的情况下,以前安装过的话使用:composer update
如图:Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire-1

因为我没有安装过,直接使用了composer update命令,于是就报错了,如图:
Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire-2

然后就可以访问网站了。

转载请注明:落伍老站长 » Laravel访问出错错误信息:`Warning: require(/vendor/autoload.php): failed to open stream: No such file or dire

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址