Mac VScode prompt: Failed to save "index.js": Insufficient permissions. Select "Retry as superuser" to try again as superuser.

Problem Description:

Projects created with sudo cannot be modified and saved due to insufficient permissions.
insert image description here

Solution:

1. Right-click on the folder, click to show profile
insert image description here
2. Click on the lower right corner to unlock. 3. Click the plus sign in the lower left corner, add yourself, and set the permissions to read and write.
insert image description here
4. [Optional] Set yourself as the owner of the folder. 5. Apply to contained items
insert image description here

over

Guess you like

Origin blog.csdn.net/weixin_65656674/article/details/129356122