# sh: next: not found

The tool is not installed. It may be missing from `package.json`, or your Dockerfile runs the build before installing dependencies.

## The error

```
sh: next: not found
```

## Why it happens

The tool is not installed. It may be missing from `package.json`, or your Dockerfile runs the build before installing dependencies.

## How to fix it

Add the dependency and commit the lockfile. Run the install before the build step in your Dockerfile.

```
npm i next
ezhst build dockerfile show
ezhst deploy
```

## Still stuck

Read the [build log](/docs/cli/deployments-log) and [runtime logs](/docs/cli/logs), or browse [all errors](/errors).
