From 3d17e3a93a50898200cc501f336158092c17a944 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 15 Sep 2018 14:57:59 +0300 Subject: [PATCH] Travis: Don't install npm@5 when the current npm is newer. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d4a73d0264..85ad14526e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ node_js: - "6" - "8" before_install: - - if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi + - if [[ $(npm -v | cut -d. -f1) -lt "5" ]]; then npm install -g npm@5; fi install: - bundle install --deployment --jobs=3 --retry=3 - npm install