Skip to content

Commit 7092699

Browse files
committed
Try an override?
1 parent 5b48842 commit 7092699

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.evergreen/install-npm-deps.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ if [[ -n "$MONOGDB_DRIVER_VERSION_OVERRIDE" ]]; then
1818
npm i --verbose --force
1919
fi
2020

21+
# Needed to ensure Python 3.6 support which is the oldest one that's available out-of-the-box on the rhel70 hosts.
22+
if [[ "${DISTRO_ID}" =~ ^(rhel7) ]] && [[ "$NODE_JS_VERSION" =~ ^20 ]]; then
23+
export REPLACE_PACKAGE="node-gyp:9.0.0"
24+
npm run replace-package
25+
26+
npm i --verbose --force
27+
fi
28+
2129
# if we rewrote this script in javascript using just builtin node modules we could skip the npm ci above
2230
npm run mark-ci-required-optional-dependencies
2331

@@ -30,4 +38,4 @@ npm run mark-ci-required-optional-dependencies
3038
npm run evergreen-release bump
3139

3240
echo "npm packages after installation"
33-
npm ls || true
41+
npm ls || true

0 commit comments

Comments
 (0)