From a4aed099796812b7697fe04cdeb4596d6260a274 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 2 Jun 2017 22:52:10 +0200 Subject: [PATCH] build: switch to NPM v5 (#4909) * build: switch to NPM v5 * Switches to NPM v5 that should use the packages from the `$HOME/.npm` cache. * Now caches the dashboard functions `node_modules` by using the shared cache in `$HOME/.npm` * Fix npm version --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fef6da085a7..69bb8472412 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,7 @@ env: before_install: - source ./scripts/ci/env.sh + - npm i -g npm@^5.0.1 install: - npm install @@ -51,5 +52,4 @@ script: cache: directories: - - node_modules - - tools/screenshot-test/functions/node_modules + - $HOME/.npm