我创建了一个新的Laravel项目。当我去终端安装依赖项时,composer显示以下警告:
Cannot create cache directory /home/w3cert/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache.
                  似乎composer在/home/w3cert/.composer/cache/文件夹中没有写权限
                
                
                  
                    —
                    Amir Bar 
                    
                  
                
              
                  如果您
                
                  
                    —
                    Caw 
                    
                  
                
              sudo composer self-update在Linux上运行,也可能会发生这种情况,因为此~/.composer目录之后将归目录所有root。
                