Fix npm cache handling when updating dependencies

pull/11340/head
murgatroid99 8 years ago
parent 1ef9f4ed4d
commit d2f91e8f02
  1. 6
      tools/run_tests/helper_scripts/pre_build_node.bat
  2. 6
      tools/run_tests/helper_scripts/pre_build_node.sh

@ -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

@ -35,10 +35,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

Loading…
Cancel
Save