question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HAP-NodeJS can run

See original GitHub issue

When I run " node Core.js" ,it can’t run,like this:

root@raspberrypi:/home/pi/HAP-NodeJS# node Core.js
*** 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=libdns_sd&e=node&f=DNSServiceRegister>
HAP-NodeJS starting...
events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::51826
    at Object.exports._errnoException (util.js:1034:11)
    at exports._exceptionWithHostPort (util.js:1057:20)
    at Server._listen2 (net.js:1265:14)
    at listen (net.js:1301:10)
    at Server.listen (net.js:1392:7)
    at EventedHTTPServer.listen (/home/pi/HAP-NodeJS/lib/util/eventedhttp.js:60:19)
    at HAPServer.listen (/home/pi/HAP-NodeJS/lib/HAPServer.js:158:20)
    at Accessory.publish (/home/pi/HAP-NodeJS/lib/Accessory.js:503:16)
    at /home/pi/HAP-NodeJS/Core.js:32:13
    at Array.forEach (native)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KhaosTcommented, Apr 9, 2017
Error: listen EADDRINUSE :::51826

Either you already have an instance of HAP-NodeJS running or port 51826 is occupied by some other programs.

0reactions
JamesHopbourncommented, Apr 9, 2017

OK thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

homebridge/HAP-NodeJS: Node.js implementation of ... - GitHub
HAP-NodeJS is intended to be used as a library to easily create your own HomeKit Accessory on a Raspberry Pi, Intel Edison, or...
Read more >
@kejadlen/hap-nodejs - npm
Start using @kejadlen/hap-nodejs in your project by running `npm i ... Intel Edison, or any other platform that can run Node.js :).
Read more >
Difference homebridge and HAP nodejs - Reddit
You can run multiples of both, so you don't have to choose.
Read more >
How to use the hap-nodejs.Characteristic.Manufacturer ... - Snyk
To help you get started, we've selected a few hap-nodejs.Characteristic.Manufacturer examples, based on popular ways it is used in public projects.
Read more >
HAP-NodeJS HomeKit Switch - Dr. Michael Kroll
Since the Switch should be driven from a Raspberry Pi running HAPNodeJS the switch should be able to deal with 3.3V GPIOs and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found