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.

Raspberry pi - cannot load bindings error

See original GitHub issue

I’m getting an error when trying to get Homebridge working on a Raspberry Pi B+. Anyone seen this?

Node: 6.9.1 Npm: 3.10.8

Installing per Pi instructions, but need to install a slightly different node package since I only have the arm6 architecture. No issues on install, but on running homebridge command I get the following:

` *** 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 /usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:91 throw err ^

Error: Could not locate the bindings file. Tried: → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/Debug/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/Release/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/out/Debug/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/Debug/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/out/Release/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/Release/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/default/ed25519.node → /usr/local/lib/node_modules/homebridge/node_modules/ed25519/compiled/6.9.1/linux/arm/ed25519.node at bindings (/usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:88:9) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/ed25519/index.js:1:99) 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) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:6:15)`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

19reactions
stardustliucommented, Mar 7, 2017

my solution is : cd /usr/local/lib/node_modules/homebridge/node_modules/ed25519 sudo node-gyp BUILDTYPE=Release rebuild

2reactions
Timmeehhhcommented, Jul 5, 2017

@stardustliu Your solution worked for me.

Don’t forget to install node-gyp first through NPM.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Could not locate the bindings file on RaspberryPi #3
Here is the output of the error: Error: Could not locate the bindings file.
Read more >
HELP Error: Cannot find module 'bindings'
hi, first post here i have just downloaded Node-Pixel with Nodejs v0.8.15 everything downloaded and install without errors
Read more >
Could not locate the bindings file : Serialport + Electron on ...
I am attempting to run an electron app using the nodejs serialport module on a raspberry pi in kiosk mode. Unfortunately I my...
Read more >
Node packages not installable - Raspberry Pi Stack Exchange
It's like it's not letting me install the node packages. internal/modules/cjs/loader.js:960 throw err; ^ Error: Cannot ...
Read more >
Installing SerialPort
Raspberry Pi Linux​ · Would you like a login shell to be accessible over serial? · Would you like the serial port hardware...
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