1. EasyHost
  2. Errors
  3. package.json is not valid

package.json is not valid

The file contains invalid JSON, often a trailing comma or a merge conflict marker.

Last updated November 9, 2026

The error

package.json is not a valid package.json

Why it happens

The file contains invalid JSON, often a trailing comma or a merge conflict marker.

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