分页: 1 / 1

安装homebridge出错求解决方法

发表于 : 周二 11月 07, 2017 00:51
kissxyqmuma
按照https://post.smzdm.com/p/555258/这篇教程操作一切正常

安装好一切后运行homebridge出错

pi@raspberrypi:~ $ homebridge
module.js:471
throw err;
^

Error: Cannot find module '../build/Release/dns_sd_bindings'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:32: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)




请问怎么解决,在线等

Re: 安装homebridge出错求解决方法

发表于 : 周二 11月 07, 2017 12:44
blindlight
nodejs装的什么版本 这个看着就像有东西没装全

Re: 安装homebridge出错求解决方法

发表于 : 周二 11月 07, 2017 17:46
kissxyqmuma
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'node' 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=libdns_sd&e=node>
*** WARNING *** The program 'node' 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=libdn ... ceRegister>
[11/7/2017, 5:42:49 PM] Loaded plugin: homebridge-edomoticz
[11/7/2017, 5:42:50 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[11/7/2017, 5:42:50 PM] ---
[11/7/2017, 5:42:50 PM] There was a problem reading your config.json file.
[11/7/2017, 5:42:50 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[11/7/2017, 5:42:50 PM]
/usr/lib/node_modules/homebridge/lib/server.js:206
throw err;
^

SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:200:19)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:57: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)



从头来了好多次,现在每次又卡在这了,一切都看着没有错误什么的,安装好运行homebridge 出现这样

Re: 安装homebridge出错求解决方法

发表于 : 周二 11月 07, 2017 19:42
blindlight
这次安装应该对了 配置文件写错了 注意json格式

Re: 安装homebridge出错求解决方法

发表于 : 周二 11月 07, 2017 19:47
kissxyqmuma
现在基本好了,什么也都正常,只是运行homebridge出现的不是6位数字而是一个二维码config.json也是检查了没有什么问题的
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'node' 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=libdns_sd&e=node>
*** WARNING *** The program 'node' 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=libdn ... ceRegister>
[11/7/2017, 7:47:08 PM] Loaded plugin: homebridge-edomoticz
[11/7/2017, 7:47:08 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[11/7/2017, 7:47:08 PM] ---
[11/7/2017, 7:47:08 PM] Loaded config.json with 0 accessories and 1 platforms.
[11/7/2017, 7:47:08 PM] ---
[11/7/2017, 7:47:08 PM] Loading 1 platforms...
[11/7/2017, 7:47:08 PM] [eDomoticz] Initializing eDomoticz platform...
[11/7/2017, 7:47:08 PM] Loading 0 accessories...
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:



























[11/7/2017, 7:47:08 PM] Homebridge is running on port 51826.
[11/7/2017, 7:47:09 PM] [eDomoticz] There was an error while getting the MQTT Hardware Device from Domoticz.
Please verify that you have added the MQTT Hardware Device and that the hardware device is enabled.

Re: 安装homebridge出错求解决方法

发表于 : 周二 1月 30, 2018 21:06
zjhzsz
我也有上面的警告,但又有数字出来,不知道成功不成功。

Re: 安装homebridge出错求解决方法

发表于 : 周四 2月 01, 2018 12:53
blindlight
ls的就算成功了