InvalidArgumentException Please provide a valid ca

2019-06-07 16:45发布

问题:

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

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

how i can resolve this ?

回答1:

Please Try it:

create these folders under storage/framework:

  • sessions
  • views
  • cache

And also you can use this command to install:

sudo composer install

Its will be working.