Cannot create cache directory .. or directory is not writable. Proceeding without cache in Laravel

前端 未结 7 1771
粉色の甜心
粉色の甜心 2020-12-22 15:07

I created a new Laravel project. When I go to the terminal to install the dependecies composer displays the following warning:

Cannot create cache

相关标签:
7条回答
  • 2020-12-22 15:57

    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.

    to get user-name type "whoami" in terminal:

    0 讨论(0)
提交回复
热议问题