EACCES: permission denied in VS Code MAC

前端 未结 11 889
我寻月下人不归
我寻月下人不归 2021-01-31 02:20

When I change any file, the system will deny me access. What\'s going on? How do I properly set permissions on Mac?

11条回答
  •  你的背包
    2021-01-31 02:49

    It is generally not a good idea to run VS Code as sudo. Instead change the permission for the directory.

    You can change the ownership of the directory so that you can open it without needing root privileges.

    $ sudo chown -R  
    

提交回复
热议问题