Fix Git Pull Unrelated Histories Error: Step-by-Step - Fix npm EACCES Permission Denied for Global Install-Common pnpm Install Errors in Pipelines

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