chbrown / BluetoothLE-HeartRate

Node.js Bluetooth Low Energy (BLE) heart rate (HR) sensor data collector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails with macOS 10.14 because of XPC

watsonix opened this issue · comments

Recent versions of macOS have problems with XPC which is part of noble.

It seems this has been attempted to be addressed with https://github.com/Timeular/noble-mac
however after I change my dependenceis to:

"dependencies": { "noble-mac": "Timeular/noble-mac" }

and my top line of index.js to: const noble = require('noble-mac')

I still can't get it to run:

$ node index.js 
internal/modules/cjs/loader.js:589
    throw err;
    ^

Error: Cannot find module '../native/noble_mac'

being discussed here: Timeular/noble-mac#13

I reinstalled Node with https://github.com/brock/node-reinstall/ and now my fork is working fine.