From fcb6dc55578e089e9f62f6e6c12cb9b60a57fee5 Mon Sep 17 00:00:00 2001 From: Ade Viankakrisna Fadlil Date: Thu, 7 Sep 2017 16:47:55 +0700 Subject: [PATCH] run npm 5.4.0 in CI (#3026) * run npm 5.4.0 in CI * run npm cache clean with --force in CI * use link instead of install * Update e2e-installs.sh * Update e2e-kitchensink.sh * Update e2e-simple.sh --- tasks/e2e-installs.sh | 6 +++--- tasks/e2e-kitchensink.sh | 6 +++--- tasks/e2e-simple.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index 58864263247..ebff7d13a7b 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -95,11 +95,11 @@ fi if hash npm 2>/dev/null then - # npm 5 is too buggy right now + # npm 5.0-5.4.0 is too buggy if [ $(npm -v | head -c 1) -eq 5 ]; then - npm i -g npm@^4.x + npm i -g npm@^5.4.1 fi; - npm cache clean || npm cache verify + npm cache clean --force || npm cache verify fi # Prevent bootstrap, we only want top-level dependencies diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index ebbac271e6e..10bdc077931 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -87,11 +87,11 @@ fi if hash npm 2>/dev/null then - # npm 5 is too buggy right now + # npm 5.0-5.4.0 is too buggy if [ $(npm -v | head -c 1) -eq 5 ]; then - npm i -g npm@^4.x + npm i -g npm@^5.4.1 fi; - npm cache clean || npm cache verify + npm cache clean --force || npm cache verify fi # Prevent bootstrap, we only want top-level dependencies diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index 48d705eef4c..84d095e9496 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -86,11 +86,11 @@ fi if hash npm 2>/dev/null then - # npm 5 is too buggy right now + # npm 5.0-5.4.0 is too buggy if [ $(npm -v | head -c 1) -eq 5 ]; then - npm i -g npm@^4.x + npm i -g npm@^5.4.1 fi; - npm cache clean || npm cache verify + npm cache clean --force || npm cache verify fi # Prevent bootstrap, we only want top-level dependencies