Skip to content
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

bash: homebridge-roku: command not found #86

Open
ozzy-simpson opened this issue Apr 20, 2019 · 4 comments
Open

bash: homebridge-roku: command not found #86

ozzy-simpson opened this issue Apr 20, 2019 · 4 comments
Labels

Comments

@ozzy-simpson
Copy link

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?

@cheung31
Copy link

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.

@bschlenk
Copy link
Owner

bschlenk commented Jun 1, 2020

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.

@bschlenk
Copy link
Owner

bschlenk commented Jun 1, 2020

Created #173 to track adding support for the /var/lib/homebridge/config.json config path.

@QuarterSwede
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants