How to Merge a Git Detached HEAD Back to Master - How to Fix npm ENOENT and Permission Errors-Git Cherry-Pick Conflict Resolution Guide

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