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.
Last updated November 25, 2026
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 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