Skip to content

Commit

Permalink
Fix node 0.8 blowing up upgrading npm 1 -> 3
Browse files Browse the repository at this point in the history
Relevant: npm/npm#9668
  • Loading branch information
dasilvacontin committed Sep 21, 2015
1 parent 0e902b7 commit 8ca09fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ensure-compatible-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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
npm install -g npm@'>= 1.3.7'
npm install -g npm@2
npm install -g npm
fi
npm uninstall semver

0 comments on commit 8ca09fd

Please sign in to comment.