Skip to content

Commit d22815f

Browse files
authored
COMPASS-4018: Go back an npm patch version (#1866)
1 parent 4689a36 commit d22815f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.evergreen/preinstall.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ else
1515
export IS_UBUNTU=true
1616
fi
1717
fi
18+
# https://jira.mongodb.org/browse/COMPASS-4018
19+
# NPM_VERSION="latest"
20+
NPM_VERSION="6.13.2"
1821

1922
echo "========================="
2023
echo "Important Environment Variables"
2124
echo "========================="
2225
echo "PLATFORM: $PLATFORM"
2326
echo "NODE_JS_VERSION: $NODE_JS_VERSION"
27+
echo "NPM_VERSION: $NPM_VERSION"
2428
echo "APPDATA: $APPDATA"
2529
echo "PATH: $PATH"
2630

@@ -43,11 +47,12 @@ if [ -n "$IS_WINDOWS" ]; then
4347
mv node-v$NODE_JS_VERSION-win-x64/* .
4448
rm -rf node-v$NODE_JS_VERSION-win-x64
4549

46-
echo "Installing latest npm..."
50+
echo "Installing npm@$NPM_VERSION..."
4751
rm -rf npm npx npm.cmd npx.cmd
4852
mv node_modules/npm node_modules/npm2
4953
chmod +x ./node.exe
50-
./node.exe node_modules/npm2/bin/npm-cli.js i -g npm@latest
54+
55+
./node.exe node_modules/npm2/bin/npm-cli.js i -g npm@$NPM_VERSION
5156
rm -rf node_modules/npm2/
5257
chmod +x npm.cmd npm
5358
else
@@ -66,10 +71,6 @@ else
6671

6772
./bin/node lib/node_modules/npm2/bin/npm-cli.js version
6873

69-
./bin/node lib/node_modules/npm2/bin/npm-cli.js i -g npm@latest
74+
./bin/node lib/node_modules/npm2/bin/npm-cli.js i -g npm@$NPM_VERSION
7075
rm -rf lib/node_modules/npm2/
71-
72-
# NOTE (@imlucas) RHEL and Ubuntu now have libsecret-dev by default
73-
# which are required for `keytar`
74-
# https://jira.mongodb.org/browse/BUILD-4243
7576
fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
],
449449
"engines": {
450450
"node": "^10.2.1",
451-
"npm": ">=6.13.3"
451+
"npm": ">=6.13.0"
452452
},
453453
"bugs": {
454454
"url": "https://docs.mongodb.com/compass/current/#contact",

0 commit comments

Comments
 (0)