Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token { when running tuya-cli wizard #596

Open
DAC324 opened this issue Aug 22, 2022 · 2 comments
Open

SyntaxError: Unexpected token { when running tuya-cli wizard #596

DAC324 opened this issue Aug 22, 2022 · 2 comments

Comments

@DAC324
Copy link

DAC324 commented Aug 22, 2022

When running tuya-cli wizard as per instructions in Setup.md, I get

# tuya-cli wizard
/usr/lib/node_modules/@tuyapi/cli/lib/list-app.js:85
						} catch {
						        ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/@tuyapi/cli/cli.js:11:17)
# 

What am I doing wrong here?

@Apollon77
Copy link
Collaborator

Your nodejs version is too old... all current/LTS versions (12+) support this! Just older not

@DAC324
Copy link
Author

DAC324 commented Aug 26, 2022

Thanks a lot! Had to upgrade Node-Red to the current version:

# npm install -g node-red@3.0.2

Now, tuya-cli wizard also works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants