ci(NODE-7496): pin npm to 11.11.1 for Node 22 build variants#4908
Merged
PavelSafronov merged 9 commits intomainfrom Mar 30, 2026
Merged
ci(NODE-7496): pin npm to 11.11.1 for Node 22 build variants#4908PavelSafronov merged 9 commits intomainfrom
PavelSafronov merged 9 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Pins npm for Node.js v22 Evergreen executions to avoid failures when upgrading npm from the bundled Node 22 npm (v10.9.7) during dependency installation.
Changes:
- Add
NPM_VERSION=11.11.1expansion to generated Node 22 buildvariants. - Override
install dependenciesfor the Node 22 unit-test task to passNPM_VERSION=11.11.1.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.evergreen/generate_evergreen_tasks.js |
Adds logic to pin npm for Node 22 buildvariants and the Node 22 unit-test task. |
.evergreen/config.yml |
Updates the generated Evergreen config to include the npm pin in Node 22 task/variant definitions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PavelSafronov
requested changes
Mar 26, 2026
Contributor
PavelSafronov
left a comment
There was a problem hiding this comment.
Let's also add a TODO JIRA item for unpinning this.
PavelSafronov
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary of Changes
Override NPM_VERSION for all tasks using Node.js v22 to avoid failures on
npm install -g npm@latest.Notes for Reviewers
This problem can easily be reproduced locally by installing Node.js v22 and then try to upgrate npm to latest using bundled version (this is what evergreen tools do):
This only reproduced on Node.js v22 (and bundled npm version 10.9.7). Node.js v20.19.0, as well as 24 - upgrades npm as expected.
What is the motivation for this change?
Release Highlight
Release notes highlight
Double check the following
npm run check:lint)type(NODE-xxxx)[!]: descriptionfeat(NODE-1234)!: rewriting everything in coffeescript