Skip to content

[BUG] ETARGET No matching version found after version update; cache clear helps #7604

Closed
@mo22

Description

@mo22

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm --version: 10.8.1
node --version: v22.3.0
mac intel 14.5

when updating to newer versions of packages:

npm install @radix-ui/[email protected]

the result is:

npm error code ETARGET
npm error notarget No matching version found for @radix-ui/[email protected].
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 log:

15 silly fetch manifest @radix-ui/[email protected]
16 silly packumentCache full:https://registry.npmjs.org/@radix-ui%2freact-accordion cache-miss
17 http fetch GET 200 https://registry.npmjs.org/@radix-ui%2freact-accordion 213ms (cache stale)
18 silly packumentCache full:https://registry.npmjs.org/@radix-ui%2freact-accordion set size:506624 disposed:false
[...]
91 silly placeDep ROOT @radix-ui/react-accordion@ REPLACE for: [email protected] want: 1.2.0
[...]
127 verbose stack @radix-ui/react-accordion: No matching version found for @radix-ui/[email protected].

after running npm cache clear --force the command runs through fine.

Expected Behavior

npm command succeeding without cache clear

Steps To Reproduce

npm init
npm install some-package
# wait for some-package to be updated
npm install some-package@new-version

Environment

npm --version: 10.8.1
node --version: v22.3.0
mac intel 14.5

npm config:

//registry.npmjs.org/:_authToken = (protected)
legacy-peer-deps = false
prefer-offline = true
prefix = "/usr/local"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions