From de3cad093a2d0a1383cef3f519400e7fcd121d2a Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Fri, 6 May 2016 22:21:56 -0400 Subject: [PATCH] always upgrade npm on travis (#788) --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7485010..f1c6fff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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