evanyeung / terminal-slack

Terminal client for slack
MIT License
1.03k stars 78 forks source link

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode #67

Open benyanke opened 6 years ago

benyanke commented 6 years ago

/home/benyanke/git/external/terminal-slack/main.js:8 let users; ^^^

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

alanbover commented 6 years ago

hey @benyanke ,

This is due to the nodejs version. Try to install a newer version. Refer: https://stackoverflow.com/questions/41960142/block-scoped-declarations-not-yet-supported-outside-strict-mode-laravel-mix