Fix 'npm command not found' and Permission Denied Errors - Fix Windows Defender Invalid Configuration via Group Policy-Troubleshoot Windows Defender Real-Time Protection Turned Off

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