Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix node 0.8 blowing up upgrading npm 1 -> 3

David da Silva Contín8ca09fda641f
diff --git a/scripts/ensure-compatible-npm.sh b/scripts/ensure-compatible-npm.sh
index 00372f70..7105e3b3 100755
--- a/scripts/ensure-compatible-npm.sh
+++ b/scripts/ensure-compatible-npm.sh
@@ -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