How to Fix Firefox Secure Connection Failed Error - Remove Git index.lock File Manually-Resolve npm Install Permission Denied Due to Wrong Ownership

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