Fix 'Externally Managed Environment' Error on Linux - How to Merge a Git Detached HEAD Back to Master-npm run build Permission Denied: Linux Fix Guide

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