Skip to content
Snippets Groups Projects
Commit ebf88207 authored by murgatroid99's avatar murgatroid99
Browse files

Decrease Node module cache time to avoid errors with out-of-date modules

parent d2f784dc
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ set PATH=%PATH%;C:\Program Files\nodejs\;%APPDATA%\npm
del /f /q BUILD || rmdir build /s /q
call npm cache clean || goto :error
call npm update || goto :error
mkdir artifacts
......
......@@ -40,6 +40,7 @@ rm -rf build || true
mkdir -p artifacts
npm cache clean
npm update
node_versions=( 0.12.0 1.0.0 1.1.0 2.0.0 3.0.0 4.0.0 5.0.0 6.0.0 7.0.0 )
......
......@@ -29,6 +29,5 @@
set PATH=%PATH%;C:\Program Files\nodejs\;%APPDATA%\npm
@rem Expire cache after 1 week
call npm update --cache-min 604800
@rem Expire cache after 1 day
call npm update --cache-min 86400
......@@ -37,8 +37,8 @@ set -ex
export GRPC_CONFIG=${CONFIG:-opt}
# Expire cache after 1 week
npm update --cache-min 604800
# Expire cache after 1 day
npm update --cache-min 86400
npm install node-gyp-install
./node_modules/.bin/node-gyp-install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment