ProjectStack
npm

npm ERR! code ETARGET — no matching version found

npm couldn't find a version of the package that satisfies the version range you specified. Either the version doesn't exist or you have a typo in the version number.

Common causes

  • The exact version you specified doesn't exist in the npm registry
  • A typo in the version number (e.g. @1.2.999 when the latest is @1.2.9)
  • The package only has pre-release versions and you need to use @next or @beta tags
  • Your version range syntax is wrong (e.g. =1.0.0 instead of 1.0.0)

How to fix it

  1. Check available versions: npm view <package> versions
  2. Install the latest stable version: npm install <package>@latest
  3. Use a valid version from the list: npm install <package>@<exact-version>
  4. For pre-release: npm install <package>@next or npm install <package>@beta

Example

npm ERR! code ETARGET npm ERR! notarget No matching version found for [email protected]. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

Running npm install [email protected] with a version number that doesn't exist

Have a different error?

Paste any error message into the Error Translator to get an instant explanation.