当我们遇到composer依赖报错问题如何解决?如果遇到类似的错误,可以进行备份composer.lock——删除 composer.lock——执行 composer install——恢复 composer.lock——执行 composer install等等操作来解决问题,详细内容请看本文。
关于composer依赖报错问题的解决方法
step1:
备份 composer.lock;
step2:
删除 composer.lock;
step3:
执行 composer install;
step4:
恢复 composer.lock(;
step5:
执行 composer install:
**Warning**: require(/www/laravel_project/vendor/composer/../../app/Helpers/function.php): Failed to open stream: No such file or directory in **/www/laravel_project/vendor/composer/autoload_real.php** on line **41**
Fatal error: Uncaught Error: Failed opening required '/www/laravel_project/vendor/composer/../../app/Helpers/function.php' (include_path='.:') in /www/laravel_project/vendor/composer/autoload_real.php:41 Stack trace: #0 /www/laravel_project/vendor/composer/autoload_real.php(45): {closure}() #1 /www/laravel_project/vendor/autoload.php(25): ComposerAutoloaderInitde606b2f13a1aa4c0ed37f7d2e9ac0d5::getLoader() #2 /www/laravel_project/public/index.php(34): require('...') #3 {main} thrown in /www/laravel_project/vendor/composer/autoload_real.php on line 41
关于composer依赖报错问题的解决方法分享就结束了,翼速应用平台内有更多相关资讯,欢迎查阅!
我来说两句