-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Install failure - ffmpeg-for-homebridge dependency error #1072
Comments
This seems to be similar to Issue #632, except they already had homebridge-ring installed. When executing |
I'm having the same issue... |
I think the issue is that
export PATH="/opt/homebridge/bin:$PATH" Then when I run:
Everything worked fine. I'm not sure this is a problem that can be solved in this repo. |
@eoghanobrien thanks for the helpful info! I'm running Homebridge in Docker, so not sure how that would impact your proposed solution. Is this an issue with the Homebridge Docker image not installing node correctly? |
Possibly, I'd expect |
This didn't work for me. I'm on Raspberry Pi. |
If you just type |
@fpaddict What exactly didn't work? Another thing you could try is updating the "homebridge-ring": "11.3.1" Then inside that same directory, run: $(which node) $(which npm) -v If either $(which node) $(which npm) install When I did this it installed the plugin as expected. |
I get v16.16.0 |
8.11.0 |
I just ran it again after updating NPM to 8.19.2. It runs, don't get any failures but the plug in never shows up in Homebridge
|
Thanks all! The solution mentioned above in @eoghanobrien's reply worked! After manually updating package.json to include homebridge-ring, it installed as expected over the command line. In case it helps anyone else, these are the outputs of the requested commands above:
After running Finally, I had actually switched to @tsightler's ring-mqtt tool through Home Assistant, so really appreciate your help working through this on Homebridge too! |
@fpaddict it looks like you ran {
"dependencies": {
"homebridge": "^1.5.0",
"homebridge-ring": "11.3.1"
}
} Inside that directory, |
@fpaddict it looks like you're running this in your user directory |
So to wrap this up @dgreif I think this issue due to the decision made by Homebridge team to keep the Homebridge
I'm not sure what to next step is here to make this |
Thanks for the community debugging everyone! I'm glad you were able to get this resolved. It seems like a similar issue pops up every few months, but I never have great advice on how to resolve it since it's an npm install issue, rather than a plugin issue. I'm going to close this as resolved, and I'll point future issues to this one for a solution. |
Bug Report
Describe the Bug
Upon attempting to install homebridge-ring through the Homebridge UI, the process fails with the error message below. It seems as if it may be failing when attempting to install the ffmpeg-for-homebridge@0.1.4 dependency? If so, any ideas? This is an entirely fresh version of homebridge (Docker) with a fresh version of the latest homebridge-ring. Thanks!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect homebridge-ring to install successfully without error.
Screenshots/Logs
USER: root
DIR: /var/lib/homebridge
CMD: npm install --save homebridge-ring@11.3.1
[##################] | reify:date-fns: http fetch GET 200 https://registry.npmjs.org/d
node:internal/modules/cjs/loader:988s: http fetch GET 200 https://registry.npmjs.org/d
throw err;
^
Error: Cannot find module '/homebridge/node_modules/homebridge-ring/node_modules/ffmpeg-for-homebridge/install.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Function.Module._load (node:internal/modules/cjs/loader:833:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code 1
npm ERR! path /homebridge/node_modules/homebridge-ring/node_modules/ffmpeg-for-homebridge
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/homebridge/.npm/_logs/2022-10-16T21_30_58_267Z-debug-0.log
Operation failed. Please review log for details.
Additional context
I have successfully run homebridge-ring for over a year on a different device (Raspberry Pi), and I'm attempting a fresh install on a new device (Synology DS220+). In both cases, I'm running homebridge in a Docker container. I tried the following:
Homebridge Ring Config
Post homebridge-ring platform config without sensitive information
Environment
The text was updated successfully, but these errors were encountered: