konsumer / tplink-lightbulb

Control TP-Link smart lightbulbs from nodejs
MIT License
190 stars 32 forks source link

index.js syntax error #1

Closed uberadminer closed 7 years ago

uberadminer commented 7 years ago

/usr/local/lib/node_modules/tplink-lightbulb/index.js:62 set (power = true, transition = 0, options = {}) { ^

SyntaxError: Unexpected token =

When I try to run tplight this is what the terminal spits out.

konsumer commented 7 years ago

What version of node are you using? I think this is related to the modern default parameters value syntax. I can rewrite it without that, though, when I get home.

uberadminer commented 7 years ago

node v4.2.2 npm 2.14.7

konsumer commented 7 years ago

Ah, yeh. If you want, just update to latest nodejs and it should work, but I don't mind making it work for old node, too.

uberadminer commented 7 years ago

Yea updating fixed, thanks.