Fix VS Code Permission Denied Error Code 13 - Git Detached HEAD: Practical Checklist and Fixes-npm run build Fails After Git Pull: Fixes

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.