aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/helper_scripts/pre_build_node.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/run_tests/helper_scripts/pre_build_node.bat')
-rw-r--r--tools/run_tests/helper_scripts/pre_build_node.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/run_tests/helper_scripts/pre_build_node.bat b/tools/run_tests/helper_scripts/pre_build_node.bat
index addb01a2a4..62b883de46 100644
--- a/tools/run_tests/helper_scripts/pre_build_node.bat
+++ b/tools/run_tests/helper_scripts/pre_build_node.bat
@@ -29,5 +29,7 @@
set PATH=%PATH%;C:\Program Files\nodejs\;%APPDATA%\npm
-@rem Expire cache after 1 day
-call npm update --cache-min 86400
+@rem Update npm to at least version 5
+call npm update -g npm
+
+call npm update --prefer-online