BlaT2512 / homebridge-cast

Control volume and media streaming status of Google Cast devices with Homebridge, and use iOS remote with Android/Google TVs
https://www.npmjs.com/package/homebridge-cast
Apache License 2.0
14 stars 1 forks source link

TV Authentication #4

Open Magna66 opened 8 months ago

Magna66 commented 8 months ago

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.

wiltonleewf commented 7 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..

Althestrasz commented 6 months ago

Could this be a Node v20 issue?