bash: homebridge-roku: command not found
ozzy-simpson opened this issue · comments
I installed the plugin using sudo npm install -g --unsafe-perm homebridge-roku
. After it installs, I try running homebridge-roku-config
, but I get back: bash: homebridge-roku-config: command not found
. What should I do?
I encountered this. When I setup Homebridge, the config was located at:
/var/lib/homebridge/config.json
But homebridge-roku-config
expects it at:
~/.homebridge/config.json
My workaround was to symlink.
That would mean that the global npm bin folder is not on your path. Do you get any output when you run this command?
echo $PATH | tr ":" "\n" | grep "node"
If not, then you need to add the npm bin location to your path. Most likely it'll be under the npm prefix, /bin. You can figure out where this is by running npm config get prefix
. Take the output of that, append /bin
. Double check that homebridge-roku-config
lives there by running ls $(npm config get prefix)/bin
. Then add that directory to your path.
Created #173 to track adding support for the /var/lib/homebridge/config.json
config path.
Created #173 to track adding support for the
/var/lib/homebridge/config.json
config path.
I don't know about a vanilla homebridge install but HOOBS uses the /var/lib/homebridge/config.json path too.