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.

Last updated November 25, 2026

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 and runtime logs, or browse all errors.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

$npx ezhst skill install