Fix Chrome Certificate Error: Invalid Authority with Proxy Settings - How to Change npm Directory to Avoid Permission Denied-How to Stop Nginx HTTPS Redirect Loop

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