Error code

npm ETARGET

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

What it means

No matching version found for the specifier — the target version or tag does not exist.

How to fix it

  1. Check the available versions with npm view <package> versions.
  2. Verify the dist-tag exists with npm dist-tag ls <package>.
  3. Update the version range in package.json to one that exists.

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