This article brings you relevant knowledge about composer. It mainly talks to you about what to do if you encounter composer dependency errors. Friends who are interested can take a look below. I hope it will be helpful to everyone.
composer dependency error reporting
If you encounter similar errors, you can do the following operations
step1:
Backup composer.lock
(under the laravel project root directory)
step2:
Delete
composer.lock
step2:
Executecomposer install
step3:
Restorecomposer.lock
(Execute after recovery to restore the previous lock's dependency is rolled back to the original version)
step4:
Execute 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
Recommended study: "composer usage tutorial 》
The above is the detailed content of If you encounter composer dependency error problems, you can do this!. For more information, please follow other related articles on the PHP Chinese website!