Reset Command Prompt to Default Settings: Step-by-Step Guide - Fix 'npm command not found' and Permission Denied Errors-Resolve npm EACCES Error on macOS and Linux

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