Fixes Travis CI Build Errors With Node-v4

This commit is contained in:
Chris Walker 2019-06-26 01:10:38 -06:00
commit 99b35b099a

View file

@ -39,7 +39,7 @@ case "$SWIGLANG" in
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
travis_retry nvm install ${VER}
nvm use ${VER}
if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] ; then
if [ "$VER" == "0.10" ] || [ "$VER" == "0.12" ] || [ "$VER" == "4" ] ; then
# travis_retry sudo apt-get install -qq nodejs node-gyp
travis_retry npm install -g node-gyp@$VER
else