eheikes / tts

Tools to convert text to speech :books::speech_balloon:
Apache License 2.0
94 stars 19 forks source link

SyntaxError: Unexpected token #5

Closed albin-john closed 7 years ago

albin-john commented 7 years ago

/usr/local/lib/node_modules/aws-tts/tts.js:10 const { checkUsage, compressSpace, generateSpeech, getSpinner, trim } = require('./lib'); ^

SyntaxError: Unexpected token { 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

eheikes commented 7 years ago

Oops, it looks like Node didn't support destructuring until v6. Can you install Node.js v6 or higher? That should work.

eheikes commented 7 years ago

I have updated the docs in #7 to reflect that Node 6+ is required. Thank you for reporting this.