Skip to content

Commit 6f46d3a

Browse files
authored
chore(deps): Add node-gyp version control across different distros MONGOSH-1891 (#2230)
1 parent 87b8948 commit 6f46d3a

File tree

3 files changed

+669
-613
lines changed

3 files changed

+669
-613
lines changed

.evergreen/install-npm-deps.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
set -e
22
set -x
33

4-
npm ci --verbose
4+
if [[ "${DISTRO_ID}" =~ ^(rhel|ubuntu1804) ]]; then
5+
# RHEL and Ubuntu 18.04 use Python 3.6 which isn't supported by newer node-gyp versions
6+
npm i node-gyp@9 --verbose --force
7+
fi
58

9+
npm ci --verbose
610
echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE"
711

812
# if MONOGDB_DRIVER_VERSION_OVERRIDE is set, then we want to replace the package version
@@ -30,4 +34,4 @@ npm run mark-ci-required-optional-dependencies
3034
npm run evergreen-release bump
3135

3236
echo "npm packages after installation"
33-
npm ls || true
37+
npm ls || true

0 commit comments

Comments
 (0)