Skip to content

Commit 70709d6

Browse files
committed
Travis: reduce spurious ECONNRESET messages during npm install.
1 parent a5b3293 commit 70709d6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,12 @@ before_install:
110110
- nvm install $NODE_VERSION
111111
- nvm use $NODE_VERSION
112112
- if test "$NODE_VERSION" = "0.8.28" ; then npm install -g [email protected] ; fi
113-
#- npm config set spin=false
114-
#- npm config set loglevel=http
113+
# Work around ECONNRESET issues on travis:
114+
# https://github.com/npm/npm/issues/7558#issuecomment-97528256
115+
# https://github.com/npm/npm/issues/7699#issuecomment-93091111
116+
- npm install -g npm@latest
117+
- npm config set spin=false
118+
- npm config set loglevel=http
115119
- node --version
116120
- npm --version
117121

scripts/publish_x86.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if [ `node -e "console.log(process.arch)"` != "ia32" ]; then
4545
fi
4646
# install 32 bit compiler toolchain and X11
4747
# test source compile in 32 bit mode
48+
npm install -g npm@latest
4849
npm install --build-from-source
4950
node-pre-gyp package testpackage
5051
npm test

0 commit comments

Comments
 (0)