ErrorException when I launch the composer install it gives me this error can you help me
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
ErrorException
require(/home/forge/stage.it/vendor/laravel/jetstream/src/../routes/.php): failed to open stream: No such file or directory
at vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:144
140▕ /
141▕ protected function loadRoutesFrom($path)
142▕ {
143▕ if (! ($this->app instanceof CachesRoutes && $this->app->routesAreCached())) {
➜ 144▕ require $path;
145▕ }
146▕ }
147▕
148▕ / *
+14 vendor frames
15 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}()
+5 vendor frames
21 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Can you dump autoload ?
composer dump-autoload
give me error :
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
ErrorException
require(/home/forge/stage.it/vendor/laravel/jetstream/src/../routes/.php): failed to open stream: No such file or directory
at vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:144
140▕ /
141▕ protected function loadRoutesFrom($path)
142▕ {
143▕ if (! ($this->app instanceof CachesRoutes && $this->app->routesAreCached())) {
➜ 144▕ require $path;
145▕ }
146▕ }
147▕
148▕ / *
+14 vendor frames
15 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}()
+5 vendor frames
21 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
I tried with the following commands:
rm -r vendor/
composer install
composer dump-autoload
but I always get that error
Try adding this to you composer.json file, run install, and remove it again
"extra": {
"laravel": {
"dont-discover": [
"laravel/jetstream"
]
}
},
it happens every time I do a pull from git. very often I solve by deleting the vendor folder and giving composer install. I solved by deleting everything and re-installing. @sinnbeck
Please sign in or create an account to participate in this conversation.