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

TypeError: program.version is not a function #80

Open
duceduc opened this issue Feb 5, 2024 · 1 comment
Open

TypeError: program.version is not a function #80

duceduc opened this issue Feb 5, 2024 · 1 comment

Comments

@duceduc
Copy link

duceduc commented Feb 5, 2024

update: I figured it out. The dependencies when I installed was outside of the bin folder.

I am running the utility on a rpi3 legacy desktop version. Running the below command gives this erorr. --verbose does not produce any logs either.

running nodejs v18.19

ds1@ds1:~/Meross/bin $ ./meross-info -gateway 10.10.10.1

/home/ds1/Meross/bin/meross:9
  .version(version)
   ^

TypeError: program.version is not a function
    at Object.<anonymous> (/home/ds1/Meross/bin/meross:9:4)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
@bytespider
Copy link
Owner

That's strange.
Which branch of the code are you using?
Did you npm install the dependencies?

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