Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
throw an error when used with npm < 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Feb 28, 2015
1 parent 7142e20 commit 22d2d13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slush-biojs",
"version": "0.7.10",
"version": "0.7.11",
"description": "A slush generator for BioJS modules",
"keywords": [
"slushgenerator",
Expand Down
10 changes: 10 additions & 0 deletions slushfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ gulp.task('default', function(done) {
opts.email = stdout.trim();
});

exec('npm -v ', function(err, stdout) {
var parts = stdout.split(".");
if(parts[0] < 2){
console.log();
console.log("Your npm version is outdated. Please update");
console.log("https://github.com/joyent/node/wiki/installing-node.js-via-package-manager");
process.exit(1);
}
});

var prev = {};
var prompts = questions.getPrompts(prev, opts);
var repeater = function(answers, repeat) {
Expand Down

0 comments on commit 22d2d13

Please sign in to comment.