Skip to content

Commit

Permalink
Assert that deps can be installed under node 0.8's npm (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasilvacontin committed May 3, 2016
1 parent c0f9be2 commit ba5637d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/ensure-compatible-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -o errexit

npm install semver
if node -e "process.exit(require('semver').lt(process.argv[1], '1.3.7') ? 0 : 1)" $(npm -v); then
# make sure dependencies install with provided npm version
npm install --production
npm install -g npm@2
npm install -g npm
fi
Expand Down

0 comments on commit ba5637d

Please sign in to comment.