# Error: Cannot find module

The `CMD` in your Dockerfile points to a file that does not exist, often because no build ran or the output folder differs.

## The error

```
Error: Cannot find module './dist/index.js'
```

## Why it happens

The `CMD` in your Dockerfile points to a file that does not exist, often because no build ran or the output folder differs.

## How to fix it

Check that the build step runs and that the `CMD` path matches its output.

```
ezhst deployments log
ezhst build dockerfile show
```

## Still stuck

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