File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ tasks:
101
101
- func : fetch source
102
102
vars :
103
103
NODE_LTS_VERSION : 14
104
+ NPM_VERSION : 9
104
105
- func : install dependencies
105
106
- func : run tests
106
107
vars :
@@ -112,6 +113,8 @@ tasks:
112
113
vars :
113
114
NODE_LTS_VERSION : 16
114
115
- func : install dependencies
116
+ vars :
117
+ NPM_VERSION : 9
115
118
- func : run tests
116
119
vars :
117
120
TEST_TARGET : node
Original file line number Diff line number Diff line change 2
2
set -o errexit # Exit the script with error if any of the commands fail
3
3
4
4
NODE_LTS_VERSION=${NODE_LTS_VERSION:- 14}
5
+ NPM_VERSION=${NPM_VERSION:- latest}
5
6
6
7
source " ${PROJECT_DIRECTORY} /.evergreen/init-node-and-npm-env.sh"
7
8
94
95
fi
95
96
96
97
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
99
99
hash -r
100
100
fi
101
101
You can’t perform that action at this time.
0 commit comments