Skip to content

Commit 8d44ec6

Browse files
durranW-A-James
authored andcommitted
test(NODE-5603): use npm 9 on eol node versions (#618)
1 parent 4c1db9a commit 8d44ec6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.evergreen/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ tasks:
101101
- func: fetch source
102102
vars:
103103
NODE_LTS_VERSION: 14
104+
NPM_VERSION: 9
104105
- func: install dependencies
105106
- func: run tests
106107
vars:
@@ -112,6 +113,8 @@ tasks:
112113
vars:
113114
NODE_LTS_VERSION: 16
114115
- func: install dependencies
116+
vars:
117+
NPM_VERSION: 9
115118
- func: run tests
116119
vars:
117120
TEST_TARGET: node

.evergreen/install-dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -o errexit # Exit the script with error if any of the commands fail
33

44
NODE_LTS_VERSION=${NODE_LTS_VERSION:-14}
5+
NPM_VERSION=${NPM_VERSION:-latest}
56

67
source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh"
78

@@ -94,8 +95,7 @@ else
9495
fi
9596

9697
if [[ $operating_system != "win" ]]; then
97-
# Update npm to latest when we can
98-
npm install --global npm@latest
98+
npm install --global npm@$NPM_VERSION
9999
hash -r
100100
fi
101101

0 commit comments

Comments
 (0)