I created a new Laravel project. When I go to the terminal to install the dependecies composer displays the following warning:
composer
Cannot create cache
Give full access of .composer to user.
sudo chown -R 'user-name' /home/'user-name'/.composer
or
sudo chmod 777 -R /home/'user-name'/.composer
user-name is your system user-name.
user-name
to get user-name type "whoami" in terminal: