Error code

npm EJSONPARSE

NPMEJSONPARSE
Runtime Error Code· An error code from a programming runtime or package manager, like Node.js or npm.

What it means

npm could not parse a JSON file — typically package.json or package-lock.json.

How to fix it

  1. Validate the file with a JSON linter (e.g. node -e "JSON.parse(require('fs').readFileSync('package.json'.

Not affiliated with npm. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.