在通过 composer 安装 jetstreamcomposer 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
不起作用尝试缓存清除但仍然不起作用。