未捕获的InvalidArgumentException:请提供有效的缓存路径

时间:2019-03-05 15:41:06

标签: laravel-5

我从bitbucket得到了一个laravel项目,其中缺少一些文件夹,例如供应商和存储文件夹,但是在我进行了作曲家更新之后,我发现下载了供应商文件夹以及其他有用的依赖关系,但是存储文件夹仍然为空 当我运行项目时,出现此错误

C:\xampp\htdocs\laravel\genesis>php artisan serve
Laravel development server started: <http://127.0.0.1:8000>
[Tue Mar  5 17:10:44 2019] PHP Fatal error:  Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36
[Tue Mar  5 17:10:45 2019] PHP Fatal error:  Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36
[Tue Mar  5 17:11:08 2019] PHP Fatal error:  Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36
[Tue Mar  5 17:11:08 2019] PHP Fatal error:  Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36

所以我想知道如何从laravel官方项目中下载所有丢失的文件

1 个答案:

答案 0 :(得分:0)

您需要在存储文件夹中创建以下文件夹:-

app

framework 
----> cache
----> sessions
----> views

logs

遵循此威胁Please provide a valid cache path以获取有关它的深入知识。

我希望这能解决请提供有效的缓存路径。问题