Fix 'npm command not found' on Linux - PowerShell Invoke-WebRequest 502 Error Troubleshooting-Common Windows Update Errors Troubleshooting Guide

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.