diff --git a/scripts/travis-before-install.sh b/scripts/travis-before-install.sh index 7d2f303007..54dc3d702e 100755 --- a/scripts/travis-before-install.sh +++ b/scripts/travis-before-install.sh @@ -13,6 +13,11 @@ then ./node_modules/.bin/npm install --production runSanityTest rm -rf node_modules/ +elif [[ ${TRAVIS_NODE_VERSION} =~ 'v8' ]] +then + echo "Downgrading to npm v4..." + npm install npm@4 + ./node_modules/.bin/npm install --production else npm install --production runSanityTest