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

CLI: "SyntaxError: Unexpected token '?'" #2179

Open
shanemcw opened this issue Sep 11, 2024 · 1 comment
Open

CLI: "SyntaxError: Unexpected token '?'" #2179

shanemcw opened this issue Sep 11, 2024 · 1 comment
Labels

Comments

@shanemcw
Copy link

Describe The Bug

On running "homebridge -h" CLI fails and stderr reports

/usr/local/lib/node_modules/homebridge/node_modules/commander/lib/command.js:396
    enableOrNameAndArgs = enableOrNameAndArgs ?? 'help [command]';
                                               ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:85:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/commander/index.js:2:21)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Logs

No response

Config

No response

Homebridge UI Version

4.58.0

Homebridge Version

1.84

Node.js Version

v20.17.0

Operating System

Ubuntu / Debian (or a variant)

Environment Info

None

Raspberry Pi Model

None

@shanemcw shanemcw added the bug label Sep 11, 2024
@shanemcw
Copy link
Author

RESOLVED
homebridge CLI was seeing an older version of node (12) than the service is (20)

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

No branches or pull requests

1 participant