EACCES: permission denied in VS Code MAC

前端 未结 11 695
我寻月下人不归
我寻月下人不归 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:45

    I had a similar issue. I had error when I tried to create a new component. I just navigated to the path displayed in Finder. For me it was ProjectFolder/src/. So I did right click on "src" folder and selected "Get Info". In that change access to "Read&Write" for my user account. Thats it !!!

    As you are trying to update a file, try to change access permission for that file (ie. app.component.css). If it didn't work try to change access for "app" folder.

    Note: Changing the access of parent/super-parent folder won't work. So change the exact folder's access preferences.

提交回复
热议问题