Open Magna66 opened 8 months ago
The file is in on of the directories.. Do a search using 'find / -name certgen.js -print' ... else try this directory 'homebridge/node_modules/homebridge-cast/certgen.js'
While I could run it but the script is unable to find any Android TV devices..
Could this be a Node v20 issue?
Every time I run this command node $(npm root -g)/homebridge-cast/certgen.js I get the following:
root@homebridge-vm:/var/lib/homebridge $ node $(npm root -g)/homebridge-cast/certgen.js node:internal/modules/cjs/loader:1147 throw err; ^
Error: Cannot find module '/opt/homebridge/lib/node_modules/homebridge-cast/certgen.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._load (node:internal/modules/cjs/loader:985:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }
I am using Homebridge Virtual Machine, Windows 11 Hyper V. Node js Version v20.11.0.
thanks for your kind help.