Fix 'npm command not found' on Linux - How to Resolve Command Not Found Despite Binary Existing-Composer Memory Limit 1024M Still Failing: Fixes That Work

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