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

8 years ago
  1. #!/usr/bin/env node
  2. function validNodeVersion () {
  3. var valid = false
  4. try {
  5. const semver = require('semver')
  6. debugger
  7. valid = semver.gte(require('process').version, '7.6.0')
  8. } catch (err) {}
  9. return valid
  10. }
  11. if (validNodeVersion()) {
  12. require('../lib/cli-app').run()
  13. } else {
  14. console.log('Sorry, this app requires node v7.6.0 or above. Please upgrade https://nodejs.org/en/')
  15. }