/home/xxxxxx/pegaswitch/start.js:24
let argv = yargs
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
Any ideas? Everything fine up to this point. Ubuntu 16.04 LTS
EDIT: With additional information using --use_strict:
xxxxxx@Ubuntu:~/pegaswitch$ sudo node --use_strict start.js
/home/xxxxxx/pegaswitch/node_modules/blessed/lib/program.js:198
case '\200':
^^
SyntaxError: Octal literals are not allowed in strict mode.
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/xxxxxx/pegaswitch/node_modules/blessed/lib/blessed.js:15:37)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
EDIT 2: The following commands get you past this (forces update of old nodejs):
curl -sL
https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs