emmcc / node-switchmate

A Node.js API for automating the Switchmate light switch cover.
MIT License
7 stars 4 forks source link

./discover.switchmate error #20

Open beefycheddar opened 5 years ago

beefycheddar commented 5 years ago

I just went through the homebridge and node-switchmate install process on OSX 10.13.6. When I run discover.switchmate, it returns the error below. What have I missed? Any guidance is appreciated.

`mini1:bin brett$ sudo ./discover.switchmate internal/modules/cjs/loader.js:583 throw err; ^

Error: Cannot find module 'xpc-connection' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object. (/usr/local/lib/node_modules/node-switchmate/node_modules/noble/lib/mac/highsierra.js:7:21) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) mini1:bin brett$ `

output of "echo $PATH" /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands

the /etc/paths file contains:

/usr/local/bin /usr/bin /bin /usr/sbin /sbin

bwalls commented 5 years ago

Me, too! Although on a Raspberry Pi.

jacobwhite commented 5 years ago

Any fix for this?