Fixing Python UnicodeDecodeError in Logging Handlers - Fix npm package.json Not Found Error-Fix EACCES Errors in npm install During Pipeline Runs

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