From edb6eda1e8ccf497fcfa7cf4439bb90630f35e51 Mon Sep 17 00:00:00 2001 From: Huafu Gandon Date: Sat, 1 Sep 2018 11:00:55 +0200 Subject: [PATCH] fix(ci): ensure npm is present with ci --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 22945c4376..e5e8efad87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,9 @@ node_js: - "8" - "6" +before_install: + - dpkg --compare-versions `npm -v` ge 5.8 || npm i -g npm@latest + script: - - npm -g install npm@latest - npm run clean -- --when-ci-commit-message - npm run test -- --coverage