Error code

Node.js ERR_INVALID_PACKAGE_CONFIG

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

What it means

The package.json file for a module is malformed and cannot be parsed.

How to fix it

  1. Fix the JSON syntax in package.json using a linter or json --check.
  2. Validate the package.json against the npm package.json spec.
  3. Delete and regenerate package.json with npm init if it is corrupt.

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