Skip to content
Snippets Groups Projects
Commit 7e15bd0b authored by Michael Lumish's avatar Michael Lumish Committed by GitHub
Browse files

Merge pull request #8529 from murgatroid99/node_fix_module_caching

Decrease Node module cache time to avoid errors with out-of-date modules
parents 6490409b 06fbca03
No related branches found
No related tags found
No related merge requests found
......@@ -27,12 +27,13 @@
@rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
@rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set 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
set 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
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,9 +40,10 @@ 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 )
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 )
for version in ${node_versions[@]}
do
......
......@@ -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