Skip to content
Latchkey

Exit Code 127 in CI: What It Means and How to Fix It

Exit code 127 means the shell could not find the command - a missing tool or a PATH problem.

The shell searched PATH and found nothing matching the command name.

What it means

Command not found: the binary is not installed or not on PATH.

Common causes

  • The tool is not installed on the runner.
  • PATH does not include the install location.
  • A typo in the command name.

How to fix it

Install the tool (or add a setup step), and ensure its directory is on PATH. On self-healing runners, a missing known package can be installed and the step retried automatically.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →