aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/helper_scripts/pre_build_node.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/run_tests/helper_scripts/pre_build_node.sh')
-rwxr-xr-xtools/run_tests/helper_scripts/pre_build_node.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/run_tests/helper_scripts/pre_build_node.sh b/tools/run_tests/helper_scripts/pre_build_node.sh
index 5d14a549da..f41da71d22 100755
--- a/tools/run_tests/helper_scripts/pre_build_node.sh
+++ b/tools/run_tests/helper_scripts/pre_build_node.sh
@@ -20,10 +20,12 @@ source ~/.nvm/nvm.sh
nvm install $NODE_VERSION
set -ex
+# Update npm to at least version 5
+npm update -g npm
+
export GRPC_CONFIG=${CONFIG:-opt}
-# Expire cache after 1 day
-npm update --cache-min 86400
+npm update --prefer-online
npm install node-gyp-install
./node_modules/.bin/node-gyp-install