Meross icon indicating copy to clipboard operation
Meross copied to clipboard

TypeError: program.version is not a function

Open duceduc opened this issue 1 year ago • 1 comments

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

duceduc avatar Feb 05 '24 03:02 duceduc

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

bytespider avatar Feb 06 '24 15:02 bytespider