Recover Lost Changes After Git Detached HEAD - Windows Shared Folder Access Registry Fix-macOS npm Build Failure: Common Fixes

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.