Skip to content

Fix npm coexistence with respective nodejs versions#15777

Merged
jslobodzian merged 13 commits intofasttrack/3.0from
skarambelkar-nodejs24-npm-fasttrack-3.0
Feb 13, 2026
Merged

Fix npm coexistence with respective nodejs versions#15777
jslobodzian merged 13 commits intofasttrack/3.0from
skarambelkar-nodejs24-npm-fasttrack-3.0

Conversation

@sandeepkarambelkar
Copy link
Contributor

@sandeepkarambelkar sandeepkarambelkar commented Feb 10, 2026

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Fix npm coexistence with respective nodejs versions
The npm version constraint causing conflict due to nodejs24 addition.
Made changes to mark npm24 distinct from previous npm and added conflict between the two.

Change Log
  • nodejs
  • nodejs24
  • npm
  • npm24
Does this affect the toolchain?

NO

Test Methodology

@sandeepkarambelkar sandeepkarambelkar requested a review from a team as a code owner February 10, 2026 07:51
@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging fasttrack/3.0 PRs Destined for Azure Linux 3.0 labels Feb 10, 2026
@sandeepkarambelkar
Copy link
Contributor Author

sandeepkarambelkar commented Feb 10, 2026

Verified the RPMs installation and confirmed that after recent changes npm routes to nodejs-npm version 20.14.0-13.azl3 whereas if we need 24 version, we need to use npm24.

sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install npm
Loaded plugin: tdnfrepogpgcheck
[using capability match for 'npm']
[using capability match for 'npm']

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs x86_64 20.14.0-13.azl3 localnodejs24repo 50.45M 15.62M
nodejs-npm x86_64 20.14.0-13.azl3 localnodejs24repo 10.53M 2.30M

Total installed size: 61.17M
Total download size: 18.02M
Is this ok [y/N]: N
Error(1032) : Operation aborted.
sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install npm24
Loaded plugin: tdnfrepogpgcheck
[using capability match for 'npm24']
[using capability match for 'npm24']

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs24 x86_64 24.13.0-2.azl3 localnodejs24repo 64.67M 20.96M
nodejs24-npm24 x86_64 24.13.0-2.azl3 localnodejs24repo 12.18M 2.49M

Total installed size: 77.04M
Total download size: 23.56M
Is this ok [y/N]: N
Error(1032) : Operation aborted.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Node.js 24 spec to avoid clashes with the existing npm packaging model by splitting/renaming the npm subpackage and adding conflict metadata.

Changes:

  • Bump nodejs24 release to -2.
  • Rename the nodejs24 npm subpackage from npm to npm24, and add Conflicts: npm.
  • Use %{_smp_build_ncpus} for the JOBS build setting instead of a hardcoded value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sandeepkarambelkar and others added 2 commits February 11, 2026 14:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@Kanishk-Bansal Kanishk-Bansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM and RPM is verified as well, Before merging kindly check https://github.com/microsoft/azurelinux/pull/15777/changes#r2792082422

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sandeepkarambelkar and others added 2 commits February 12, 2026 23:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Renamed npm subpackage to npm and updated provided capability from npm to nodejs24-npm.
@sandeepkarambelkar
Copy link
Contributor Author

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sandeepkarambelkar
Copy link
Contributor Author

@sandeepkarambelkar
Copy link
Contributor Author

I have verified the package provides constraints using the generated RPMs -

sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install nodejs24-npm
Loaded plugin: tdnfrepogpgcheck

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs24 x86_64 24.13.0-2.azl3 localnginx24repo 64.67M 20.96M
nodejs24-npm x86_64 24.13.0-2.azl3 localnginx24repo 12.18M 2.49M

Total installed size: 77.04M
Total download size: 23.56M
Is this ok [y/N]: N
Error(1032) : Operation aborted.
sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install npm
Loaded plugin: tdnfrepogpgcheck
[using capability match for 'npm']
[using capability match for 'npm']

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs x86_64 20.14.0-13.azl3 localnginx24repo 50.45M 15.62M
nodejs-npm x86_64 20.14.0-13.azl3 localnginx24repo 10.53M 2.30M

Total installed size: 61.17M
Total download size: 18.03M
Is this ok [y/N]: N
Error(1032) : Operation aborted.
sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install nodejs
Loaded plugin: tdnfrepogpgcheck

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs x86_64 20.14.0-13.azl3 localnginx24repo 50.45M 15.62M

Total installed size: 50.64M
Total download size: 15.72M
Is this ok [y/N]: N
Error(1032) : Operation aborted.
sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install nodejs npm
Loaded plugin: tdnfrepogpgcheck
[using capability match for 'npm']
[using capability match for 'npm']

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs-npm x86_64 20.14.0-13.azl3 localnginx24repo 10.53M 2.30M
nodejs x86_64 20.14.0-13.azl3 localnginx24repo 50.45M 15.62M

Total installed size: 61.17M
Total download size: 18.03M
Is this ok [y/N]: N
Error(1032) : Operation aborted.
sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install nodejs24 nodejs24-npm
Loaded plugin: tdnfrepogpgcheck

Installing:
c-ares x86_64 1.30.0-1.azl3 azurelinux-official-base 195.46k 105.38k
nodejs24-npm x86_64 24.13.0-2.azl3 localnginx24repo 12.18M 2.49M
nodejs24 x86_64 24.13.0-2.azl3 localnginx24repo 64.67M 20.96M

Total installed size: 77.04M
Total download size: 23.56M
Is this ok [y/N]: N
Error(1032) : Operation aborted.
sandeep@marinerDevVM [ ~/nodejs24/RPMS ]$ sudo tdnf install nodejs24 npm
Loaded plugin: tdnfrepogpgcheck
[using capability match for 'npm']
[using capability match for 'npm']

  1. package nodejs-npm-20.14.0-13.azl3.x86_64 requires nodejs = 20.14.0-13.azl3, but none of the providers can be installed
    Found 1 problem(s) while resolving
    Error(1301) : Solv general runtime error

@jslobodzian jslobodzian merged commit 2b70c39 into fasttrack/3.0 Feb 13, 2026
24 of 27 checks passed
@jslobodzian jslobodzian deleted the skarambelkar-nodejs24-npm-fasttrack-3.0 branch February 13, 2026 06:37
CBL-Mariner-Bot pushed a commit that referenced this pull request Feb 13, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
(cherry picked from commit 2b70c39)
@CBL-Mariner-Bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fasttrack/3.0 PRs Destined for Azure Linux 3.0 Packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants