Skip to content

Commit 9a1f8a4

Browse files
committed
changed required node version in test.js from 4 to 4 through 6
1 parent c86cfa4 commit 9a1f8a4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ console.log("reading input...")
3939

4040
var version = process.version;
4141
console.log("used node version " + version);
42-
if(version.substring(0,2) != "v4"){
43-
log.error("please use node version 4.x")
44-
} else{
42+
if(version.substring(0,2) === "v4" || version.substring(0,2) === "v5" || version.substring(0,2) === "v6"){
43+
4544
if (options.file){
4645
inquirerprompt.setShowfilename(true);
4746
}
@@ -140,3 +139,7 @@ if(version.substring(0,2) != "v4"){
140139
}
141140
}
142141
}
142+
else {
143+
log.error("please use node version 4.x through 6.x")
144+
145+
}

0 commit comments

Comments
 (0)