Interview Prep/CI/CD/GitLab CI Failures

`ERROR: Job failed: exit code 1` with `/bin/bash: line 1: npm: command not found`.

BeginnerTroubleshootingGitLab CI Failures
Answer

Likely causes → Wrong or default image without Node.

Diagnose → Check image: for the job and default.

Fix → Set image: node:22.

Prevent → Set default: image: and pin versions.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI Failures