I cloned a Laravel 5.2 project.
When I execute composer install, I got the error:
[InvalidArgumentException]
Please provide a valid cache path.
Try the following:
create these folders under storage/framework:
Now it should work
Run these commands in your terminal.
cd storage/
mkdir -p framework/{session,views,cache}
chmod -R 775 framework
chown -R www-data:www-data framework
I fixed it.
Create these folders under storage/framework:
sessions
views
cache
And also you can use this command to install:
sudo composer install
Now its worked!