Skip to content

"nx migrate 22" resolves always to latest version under npm@12.0.2 #36762

Description

@MorfMichael

Current Behavior

If i want to migrate an v21 nx monorepo with npm@12.0.2 i always get the following error:
NX Fetching nx@22.7.8 resolved to version 23.1.1. Check for registry, override, or minimum-release-age configuration that hides the requested version.
With a npm@11.19.0 it works.

Expected Behavior

With npm@12.0.2 it should also be possible to migrate one major version at a time.

GitHub Repo

No response

Steps to Reproduce

  1. npm install -g npm@12.0.2
  2. npx create-nx-monorepo@21.6.11 (Angular)
  3. npx nx migrate 22

Nx Report

Node           : 24.18.0
OS             : win32-x64
Native Target  : x86_64-windows
npm            : 12.0.2

nx                     : 21.6.11
@nx/js                 : 21.6.11
@nx/eslint             : 21.6.11
@nx/workspace          : 21.6.11
@nx/angular            : 21.6.11
@nx/devkit             : 21.6.11
@nx/eslint-plugin      : 21.6.11
@nx/module-federation  : 21.6.11
@nx/rspack             : 21.6.11
@nx/web                : 21.6.11
@nx/webpack            : 21.6.11
typescript             : 5.9.3
---------------------------------------
Community plugins:
angular-eslint : 20.7.0
---------------------------------------
Cache Usage: 0.00 B / 47.48 GB

Failure Logs

NX   Fetching nx@22.7.8 resolved to version 23.1.1. Check for registry, override, or minimum-release-age configuration that hides the requested version.

Package Manager Version

npm@12.0.2

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

I didn't found any npm option which helped out on this one. So maybe somebody can help out. Thanks.

Metadata

Metadata

Assignees

Labels

priority: highHigh Priority (important issues which affect many people severely)scope: corecore nx functionalitytype: bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions