Skip to content

Commit

Permalink
Merge pull request #829 from rwaldron/764
Browse files Browse the repository at this point in the history
Bail out if not a valid version of node. Fixes gh-764
  • Loading branch information
HipsterBrown committed Aug 22, 2016
2 parents 81856a6 + 4f80b73 commit ced1f07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/tessel-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ const CLI_ENTRYPOINT = 'cli.entrypoint';
// Check for updates
const pkg = require('../package.json');

if (parseInt(process.versions.node) > 5) {
log.error('Tessel 2 CLI (t2-cli) is supported for use with the Node.js 4.x.x LTS Release.');
process.exit();
}

/*
* If a command has been run with root,
* do not try to read the update-notifier config file.
Expand Down

0 comments on commit ced1f07

Please sign in to comment.