Skip to content
Merged
8 changes: 6 additions & 2 deletions .evergreen/install-npm-deps.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
set -e
set -x

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

npm ci --verbose
echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE"

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

echo "npm packages after installation"
npm ls || true
npm ls || true
Loading
Loading