always upgrade npm on travis (#788)

This commit is contained in:
Francis Gulotta 2016-05-06 22:21:56 -04:00
parent de9812cdb5
commit de3cad093a

View file

@ -55,7 +55,8 @@ before_install:
- X86_FILE=$(node -p "v=parseInt(process.versions.node),(v>=1&&v<4?'iojs':'node')+'-'+process.version+'-'+process.platform+'-x86'")
# download node if testing x86 architecture
- if [[ "$ARCH" == "x86" ]]; then wget $BASE_URL/$X86_FILE.tar.gz; tar -xf $X86_FILE.tar.gz; export PATH=$X86_FILE/bin:$PATH; fi
# reinstall npm and node-pre-gyp
# Install the latest npm node-pre-gyp and node-pre-gyp-github
- npm install -g npm
- npm install -g node-gyp node-pre-gyp node-pre-gyp-github
# print versions
- npm --version