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.
15 lines
386 B
15 lines
386 B
#!/usr/bin/env node
|
|
function validNodeVersion () {
|
|
var valid = false
|
|
try {
|
|
const semver = require('semver')
|
|
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/')
|
|
}
|