通过composer安装jetstream后composer require laravel/jetstream 突然得到一个ErrorException,没有这样的文件或目录。
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
ErrorException
require(F:\laravelApps\test_proj\vendor\laravel\jetstream\src/../routes/.php): failed to open stream: No such file or directory
at F:\laravelApps\test_proj\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▕ /**
1 F:\laravelApps\test_proj\vendor\laravel\framework\src\Illuminate\Support\ServiceProvider.php:144
require()
2 F:\laravelApps\test_proj\vendor\laravel\jetstream\src\JetstreamServiceProvider.php:172
Illuminate\Support\ServiceProvider::loadRoutesFrom("F:\laravelApps\test_proj\vendor\laravel\jetstream\src/../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.
我使用这个指南进行安装。 https://jetstream.laravel.com/1.x/installation.html
我尝试删除供应商,但运行composer update不起作用尝试清除缓存但仍然不起作用。
慕的地6264312
开心每一天1111
回首忆惘然
精慕HU