You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
399 B

#!/usr/bin/env node
function validNodeVersion () {
var valid = false
try {
const semver = require('semver')
debugger
valid = semver.gte(require('process').version, '7.6.0')
} catch (err) {}
return valid
}
if (validNodeVersion()) {
require('../lib/cli-app').run()
} else {
console.log('Sorry, this app requires node v7.6.0 or above. Please upgrade https://nodejs.org/en/')
}