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
- Check available versions: npm view <package> versions
- Install the latest stable version: npm install <package>@latest
- Use a valid version from the list: npm install <package>@<exact-version>
- 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.
