Error code

npm EBADPLATFORM

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

What it means

The package is not compatible with the current operating system or CPU architecture.

How to fix it

  1. Check whether the package supports your OS and architecture.
  2. Look for an alternative package that supports your platform.
  3. If you own the package update the os/cpu fields or provide a platform-specific build.

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