hardillb / node-red-contrib-alexa-home-skill

A Node-RED node to control things via Amazon Alexa
https://alexa-node-red.bm.hardill.me.uk/
Apache License 2.0
89 stars 42 forks source link

SyntaxError: Invalid or unexpected token #93

Closed Holger-Will closed 3 years ago

Holger-Will commented 3 years ago

trying to install gives an Error

13 Dec 06:26:07 - [warn] [node-red-contrib-alexa-home-skill/alexa] SyntaxError: Invalid or unexpected token

I'm on Windows 10 and tried with different versions of node > 12.0.0 tried installing via the pallette, by hand unsing npm and cloning the repository and running it locally.

the problem is caused by the mqtt package. it seems version 2.x.x will cause this Error. after trying mqtt v2.0.1 and v2.18.8 with node version 15,14,13 and 12 (all producing the same error) i gave up digging any further.

updating to mqtt@latest (4.2.6) fixes the issue...

hardillb commented 3 years ago

I should technically support Node 8 until Node-RED v2.0 ships early next year.

It looks like core Node-RED has pinned at v4.2.6 for the same reason