How to Fix Windows Defender Error 0x80070422 - Windows Search Indexing Stuck After Update – Fix-Fix 'npm command not found' and Permission Denied Errors

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