AnswerBun.com

Failed to install laravel/jetstream on laravel 8

Stack Overflow Asked by VLDCNDN on October 8, 2020

after the installation of jetstream via composer composer require laravel/jetstream
then suddenly get an ErrorException that there’s no such file or directory.

Writing lock file
Generating optimized autoload files
> IlluminateFoundationComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   ErrorException

  require(F:laravelAppstest_projvendorlaraveljetstreamsrc/../routes/.php): failed to open stream: No such file or directory

  at F:laravelAppstest_projvendorlaravelframeworksrcIlluminateSupportServiceProvider.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▕     /**

  1   F:laravelAppstest_projvendorlaravelframeworksrcIlluminateSupportServiceProvider.php:144
      require()

  2   F:laravelAppstest_projvendorlaraveljetstreamsrcJetstreamServiceProvider.php:172
      IlluminateSupportServiceProvider::loadRoutesFrom("F:laravelAppstest_projvendorlaraveljetstreamsrc/../routes/.php")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.

I use this guideline for the installation.
https://jetstream.laravel.com/1.x/installation.html

I tried to delete the vendor and run composer update doesn’t work
tried to cache clear but still doesn’t work.

2 Answers

Uncache your routes and try again.


  1. Remove jetstream from composer

    composer remove laravel/jetstream
    
  2. Then you should be able to cache your routes using

     php artisan route:cache
    
  3. Then install jetstream

     composer require laravel/jetstream
    

Correct answer by Expired Brain on October 8, 2020

UPDATE:

You just need to run php artisan route:cache

https://github.com/laravel/jetstream/issues/186

Answered by VLDCNDN on October 8, 2020

Add your own answers!

Related Questions

bootstrap collapsible div disable

1  Asked on December 11, 2021 by kumara

   

Is there any way to access an internal Node.js module?

1  Asked on December 11, 2021 by vilicvane

 

Issues with matplotlib

1  Asked on December 11, 2021 by giancarlo-betti

     

Import a list of string from another file in flutter

1  Asked on December 11, 2021 by wytex-system

 

Gradle Issue when trying to add local library

1  Asked on December 11, 2021 by ilovesomething23

         

Django Formset Initialization in POST and GET

0  Asked on December 11, 2021 by aannaa

       

Penalty for Non-State-Changing Texture Rebinding in OpenGL

0  Asked on December 11, 2021 by pprovins

   

MongoDB aggregate Query from mongodb university course

0  Asked on December 11, 2021 by 1005hoon

 

Classes and interfaces in Angular 9

1  Asked on December 11, 2021 by harry_c

   

Android Studio. App crashes after thread sleeps

1  Asked on December 9, 2021 by lfc-productions

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP