nfarina / homebridge-dummy

Dummy switches for Homebridge: https://github.com/nfarina/homebridge
267 stars 81 forks source link

How to install the plugin #8

Closed OnilMr closed 6 years ago

OnilMr commented 6 years ago

Hi. I'm new to homebridge. When I try to install this plugin using "sudo npm install homebridge-dummy" I get this error: " npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN pi No description npm WARN pi No repository field. npm WARN pi No README data npm WARN pi No license field.

If I don't install the plugin and add the accessory to config.json when I try to run homebridge it gives me an error too since the dummy accessory wasn't linked to any plugin.

How can I solve this?

OnilMr commented 6 years ago

I was missing the -g in: sudo npm install -g homebridge-dummy

Rookie mistake.

nfarina commented 6 years ago

😎👍