mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-22 21:29:14 +00:00
add error message for unsupported versions of node
This commit is contained in:
parent
d9ac76a0b7
commit
66f1261621
10
bin/embark
10
bin/embark
@ -1,4 +1,14 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
try {
|
||||
eval('let __nodeTest = 123;');
|
||||
} catch(e) {
|
||||
if (e.name === 'SyntaxError') {
|
||||
console.error("unsupported version of NodeJS. Make sure you are running nodejs 6.9.5 or above");
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
|
||||
var Cmd = require('../lib/cmd');
|
||||
var cli = new Cmd();
|
||||
cli.process(process.argv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user