File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1515 export IS_UBUNTU=true
1616 fi
1717fi
18+ # https://jira.mongodb.org/browse/COMPASS-4018
19+ # NPM_VERSION="latest"
20+ NPM_VERSION=" 6.13.2"
1821
1922echo " ========================="
2023echo " Important Environment Variables"
2124echo " ========================="
2225echo " PLATFORM: $PLATFORM "
2326echo " NODE_JS_VERSION: $NODE_JS_VERSION "
27+ echo " NPM_VERSION: $NPM_VERSION "
2428echo " APPDATA: $APPDATA "
2529echo " 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
5358else
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
7576fi
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments