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

Can't start (unexpected token) #36

Open
danergo opened this issue Nov 16, 2021 · 1 comment
Open

Can't start (unexpected token) #36

danergo opened this issue Nov 16, 2021 · 1 comment

Comments

@danergo
Copy link

danergo commented Nov 16, 2021

# ./am43ctrl MYMAC -l 3000

/home/user/node_modules/am43-ctrl/src/am43.js:29
    static busyDevice = null;
                      ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/user/node_modules/am43-ctrl/index.js:7:14)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

I have followed the instructions, and no errors were found during the installation.
What am I doing wrong? Or this software is obsolete now?

Thank you!

@tomec-martin
Copy link

"Support for instance class fields starts with node >= 12"
Seems that nodejs 10 is not supported...

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