Fix Git Detached HEAD State in Visual Studio Code - Git Allow Unrelated Histories Explained-Fix npm install Permission Denied Errors on package.json

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