# An input command failed

What "the input command failed, so Axle can't hash the tasks that use it" means and how to fix it.

```text
error: the input command `node --version` failed with exit code 127, so Axle can't hash the tasks that use it: sh: 1: node: not found
hint: Run the command by itself at the repository root to see what went wrong, or fix it in inputs in axle.toml.
```

## Why it happens

A task's `inputs`, or a set in `[inputs]`, names a command, such as `{ command = "node --version" }`, whose output counts towards the task's hash. Axle runs each such command once at the start of a run, at the repository root, and it either couldn't start or ended with an exit code other than 0. Without its output Axle can't work out the hash, so no task runs.

The usual reasons are a program that isn't installed or isn't on the `PATH`, a typo in the command, or a command that needs a variable it doesn't get: in strict mode, commands get only the variables every task gets and those in `globalEnv` and `globalPassThroughEnv`.

## How to fix it

Run the command by itself at the repository root and fix what it reports. If it needs a variable, add the variable to `globalPassThroughEnv`, or to `globalEnv` if it should change every task's hash. If the command is wrong, fix it under `inputs` in `axle.toml`; [inputs](https://axlers.dev/docs/reference/configuration.md#inputs) shows how commands are written.
