InvalidArgumentException请提供有效的缓存路径错误laravel 5.2

问题描述:

我正在使用Laravel 5.2,运行composer updateartisan optimize时出现错误.

I'm working with Laravel 5.2 and i have an error when i run composer update or artisan optimize ..

我已经在我的供应商上进行搜索,但没有找到Compiled.php文件!我尝试生成此代码,我运行了工匠优化,但出现了相同的错误

i've searched on my vendor, i didn't found compiled.php file ! i try to generate this i run the artisan optimize, i have the same error

[InvalidArgumentException]          
  Please provide a valid cache path

Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1

我该如何解决?

请尝试:

存储/框架下创建以下文件夹:

  • 会话
  • 观看次数
  • 缓存

您还可以使用以下命令进行安装:

And also you can use this command to install:

sudo composer install

它将正常工作.