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