且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Laravel Composer更新错误-权限被拒绝

更新时间:2023-11-17 09:03:34

我找到了解决方案.如果您看到错误,那么很显然我没有访问权限:

I found the solution. If you see the error then it would be clear that I don't had access to the:

 "/home/username/.composer/cache/files/symfony/security-core/3a27d7b34ee62cb0fdf5ad970e7777912ef4722f.zip".

当我浏览该目录时,我发现它的所有者是'root'或'sudo'.

When I explore this directory, I found that its owner is 'root' or 'sudo'.

所以我删除了'.composer'目录,然后开始在我的laravel项目目录中进行更新,一切都很好.没问题!

So I deleted the '.composer' directory and then started to update in my laravel project directory, every thing was fine and perfect! No problem at all!