bytespider / Meross

Investigating the Meross/Refoss MSS310 Smart Plug and getting these devices to communicate with our private MQTT brokers
110 stars 19 forks source link

TypeError: program.version is not a function #80

Open duceduc opened 5 months ago

duceduc commented 5 months ago

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 commented 5 months ago

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