Fix npm run build Failed on Windows: Common Causes and Solutions - Git Detached HEAD: Find and Restore Missing Changes-Fix 'Permission Denied' When Running pip install --user

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