Skip to content

Commit abf767d

Browse files
committed
Try or version
1 parent 7092699 commit abf767d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.evergreen/install-npm-deps.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ if [[ -n "$MONOGDB_DRIVER_VERSION_OVERRIDE" ]]; then
1919
fi
2020

2121
# 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
22+
if [[ "${DISTRO_ID}" =~ ^(rhel) ]] && [[ "$NODE_JS_VERSION" =~ ^20 ]]; then
23+
npm install node-gyp@9 --verbose --force
2724
fi
2825

2926
# if we rewrote this script in javascript using just builtin node modules we could skip the npm ci above

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"mocha": "^10.2.0",
113113
"mongodb": "^6.9.0",
114114
"mongodb-runner": "^5.7.0",
115-
"node-gyp": "^10.2.0",
115+
"node-gyp": "^9.0.0 || ^10.2.0",
116116
"nyc": "^15.1.0",
117117
"pkg-up": "^3.1.0",
118118
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)