Git Detached HEAD: Practical Checklist and Fixes - Fix npm run build: Module Not Found Error-Troubleshoot Error 0x80070002 with SFC and DISM

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