EACCES: permission denied in VS Code MAC

前端 未结 11 659
我寻月下人不归
我寻月下人不归 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 02:31

    Go to your terminal and input the command:

    sudo "/Applications/Visual Studio Code.app/Contents/MacOS/Electron" ~/.bash_profile
    

    It works for me.

    However, according to the answers on the websites, it is not recommended to get super user permission when you launch the vs code. I am new to vs code as well so I don't know the right method to get permission.

    Besides, on my mac, you will get only permission once when you type in the command and after you exit your vs code, you will not possess the permission if you open the vs code again. I am still working on it and try to fix.

    But this answer should fix your problem.

提交回复
热议问题