We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2587f04 commit d7b1bebCopy full SHA for d7b1beb
.evergreen/install-dependencies.sh
@@ -2,6 +2,9 @@
2
set -o errexit # Exit the script with error if any of the commands fail
3
4
NODE_LTS_VERSION=${NODE_LTS_VERSION:-16}
5
+# npm version can be defined in the environment for cases where we need to install
6
+# a version lower than latest to support EOL Node versions.
7
+NPM_VERSION=${NPM_VERSION:-latest}
8
9
source "${PROJECT_DIRECTORY}/libmongocrypt/bindings/node/.evergreen/init-node-and-npm-env.sh"
10
@@ -94,8 +97,7 @@ else
94
97
fi
95
98
96
99
if [[ $operating_system != "win" ]]; then
- # Update npm to latest when we can
- npm install --global npm@latest
100
+ npm install --global npm@$NPM_VERSION
101
hash -r
102
103
0 commit comments