Error code

npm ELIFECYCLE

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

What it means

An npm lifecycle script (preinstall install postinstall etc.) exited with a non-zero status code.

How to fix it

  1. Read the error output above the ELIFECYCLE line for the actual failure.
  2. Run npm install --verbose for more detail.
  3. Check that all required build tools (node-gyp python make) are installed.
  4. Try deleting node_modules and package-lock.json then running npm install again.

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