Skip to content

Commit 5ada0e1

Browse files
committed
pin npm version for unit tests on node 22
1 parent 3bcdbe4 commit 5ada0e1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.evergreen/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,8 @@ tasks:
19941994
updates:
19951995
- {key: NODE_LTS_VERSION, value: '22'}
19961996
- func: install dependencies
1997+
vars:
1998+
NPM_VERSION: 11.11.1
19971999
- func: run unit tests
19982000
- name: run-unit-tests-node-24
19992001
tags:

.evergreen/generate_evergreen_tasks.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ const unitTestTasks = Array.from(
485485
updateExpansions({
486486
NODE_LTS_VERSION
487487
}),
488-
{ func: 'install dependencies' },
488+
parseInt(NODE_LTS_VERSION, 10) === 22
489+
? { func: 'install dependencies', vars: { NPM_VERSION: '11.11.1' } }
490+
: { func: 'install dependencies' },
489491
{ func: 'run unit tests' }
490492
]
491493
};

0 commit comments

Comments
 (0)