Skip to content

Commit

Permalink
build: fix Node.js 0.8 npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Dec 24, 2017
1 parent 68b34f5 commit 46bda3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -18,6 +18,8 @@ cache:
before_install:
# Skip updating shrinkwrap / lock
- "npm config set shrinkwrap false"
# SSL certificate not in older Node.js versions
- "test $TRAVIS_NODE_VERSION != '0.8' || npm config set strict-ssl false"
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Expand Up @@ -16,6 +16,7 @@ cache:
install:
- ps: Install-Product node $env:nodejs_version
- npm config set shrinkwrap false
- if "%nodejs_version%" equ "0.8" npm config set strict-ssl false
- if "%nodejs_version%" equ "0.8" npm rm --save-dev istanbul
- for /f tokens^=2^ delims^=^" %%m in ('findstr /r /c:"eslint[^ ]" package.json') do call npm rm --save-dev %%m
- if exist node_modules npm prune
Expand Down

0 comments on commit 46bda3e

Please sign in to comment.