package.json is not valid

The file contains invalid JSON, often a trailing comma or a merge conflict marker, so the install step in your Dockerfile fails.

Last updated November 25, 2026

The error

npm error JSON.parse Invalid package.json

Why it happens

The file contains invalid JSON, often a trailing comma or a merge conflict marker, so the install step in your Dockerfile fails.

How to fix it

Validate the file locally, fix it and deploy again.

node -e "JSON.parse(require('fs').readFileSync('package.json'))"
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