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

前端 未结 7 1820
粉色の甜心
粉色の甜心 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:41

    When you installed composer pretty sure you used $ sudo command because of that the ~/.composer folder was created by the root.

    Run this to fix the issue:

    $ sudo chown -R $USER $HOME/.composer
    

提交回复
热议问题