Domotic+homebridge插件运行不起来,大家帮我看看
发表于 : 周三 8月 16, 2017 21:03
大神们,谁能帮帮我,我现在Domotic装好了,也和博联连好的,现在装homebridge插件,可装上运行不了,查遍了,网上所有的帖子,装他们说的方法来做,运行出来报错,大神们帮我看看错在哪了,谢谢大神
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=nodejs&f=DNSServiceRegister>
[2017-08-16 21:02:38] Loaded plugin: homebridge-edomoticz
[2017-08-16 21:02:38] Registering platform 'homebridge-edomoticz.eDomoticz'
[2017-08-16 21:02:38] ---
[2017-08-16 21:02:39] Loaded plugin: homebridge-homeassistant
[2017-08-16 21:02:39] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2017-08-16 21:02:39] ---
[2017-08-16 21:02:39] There was a problem reading your config.json file.
[2017-08-16 21:02:39] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2017-08-16 21:02:39]
/usr/lib/node_modules/homebridge/lib/server.js:197
throw err;
^
SyntaxError: Unexpected token in JSON at position 2
at Object.parse (native)
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:191:19)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:52:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
运行不起来,大神们帮帮我,我已经研究三四天了,都没弄好,大家帮帮我
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=nodejs&f=DNSServiceRegister>
[2017-08-16 21:02:38] Loaded plugin: homebridge-edomoticz
[2017-08-16 21:02:38] Registering platform 'homebridge-edomoticz.eDomoticz'
[2017-08-16 21:02:38] ---
[2017-08-16 21:02:39] Loaded plugin: homebridge-homeassistant
[2017-08-16 21:02:39] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2017-08-16 21:02:39] ---
[2017-08-16 21:02:39] There was a problem reading your config.json file.
[2017-08-16 21:02:39] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2017-08-16 21:02:39]
/usr/lib/node_modules/homebridge/lib/server.js:197
throw err;
^
SyntaxError: Unexpected token in JSON at position 2
at Object.parse (native)
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:191:19)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:52:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
运行不起来,大神们帮帮我,我已经研究三四天了,都没弄好,大家帮帮我