oyooyo / keyble

Command line tools and library for controlling eqiva eQ-3 Bluetooth smart locks
90 stars 28 forks source link

Add noble dependency in package.json #15

Closed Ircama closed 3 years ago

Ircama commented 5 years ago

Add noble dependency in package.json

When getting the following error after keyble installation, it means that noble has not been installed.

$ keyble-registeruser
module.js:550
    throw err;
    ^

Error: Cannot find module 'noble'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/keyble/node_modules/simble/simble.js:138:9)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

The failing instruction is:

noble = require('noble');

To install noble:

sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
sudo npm install --unsafe-perm --update --global noble

Alternatively, this patch adds noble dependency in package.json.

Micky79NRW commented 4 years ago

I have the same problem on raspbian buster. I installed keyble and after first start the error module.js:550 throw err;

Error: Cannot find module 'noble' appears. Then I installed noble, but same error comes.

I deinstalled all, incl. nodejs8 and reinstalled all again, with first install noble and then keyble, but the same error comes.

Where is my mistake???

P.S: I tried this with stretch. There is no problem. Looks like there is a problem with buster.

oyooyo commented 3 years ago

Sorry @Ircama for never actually having looked into this, I seem to have overlooked this. Future versions of keyble will use noble directly and will thus indeed have the noble dependency.