Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Assert that deps can be installed under node 0.8's npm (#2236)

David da Silvaba5637da03e3
diff --git a/scripts/ensure-compatible-npm.sh b/scripts/ensure-compatible-npm.sh
index 7105e3b3..9ae26c1a 100755
--- a/scripts/ensure-compatible-npm.sh
+++ b/scripts/ensure-compatible-npm.sh
@@ -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