如何修复错误laravel 5.2“无法打开流:无此文件或目录".没有作曲家 [英] how to fix error laravel 5.2 "failed to open stream: No such file or directory" without composer

查看:84
本文介绍了如何修复错误laravel 5.2“无法打开流:无此文件或目录".没有作曲家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在由debian linux托管的laravel 5.2项目中遇到了此错误

I've got this error in my laravel 5.2 project who hosted in debian linux

Warning: require_once(/home/u706561288/public_html/sap/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in 
/home/u706561288/public_html/sap/vendor/autoload.php on line 5

Fatal error: require_once(): Failed opening required '/home/u706561288/public_html/sap/vendor/composer/autoload_real.php' (include_path='.:/opt/alt/php70/usr/share/pear') in 
/home/u706561288/public_html/sap/vendor/autoload.php on line 5

如此众多的论坛(例如stackoverflow)告诉我要使用php artisan"composer update",但是 不幸的是,我的托管软件包不适用于作曲家安装 请告诉我如何解决此问题

so many forum like stackoverflow tell me to using php artisan "composer update" but unfortunately my hosting package not available to composer instalation please tell me how to fix this problem

推荐答案

我建议您测试这些步骤

  • 在本地主机上,运行以下两个命令(composer updatecomposer dump-autoload)
  • 在服务器上重新上传整个项目

此外,如果问题仍未解决,则可以删除‍ Vendor文件夹和composer.lock文件,然后运行composer install命令并再次重新上传整个项目.

Also, if the problem is not resolved, you can delete the ‍Vendor folder and the composer.lock file and run the composer install command and Re-upload the entire project again.

这篇关于如何修复错误laravel 5.2“无法打开流:无此文件或目录".没有作曲家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆