fivdi / i2c-bus

I2C serial bus access with Node.js
MIT License
348 stars 57 forks source link

Fixed 'Module did not self-register' error on macos using node 18. #115

Closed nleclerc closed 1 year ago

nleclerc commented 1 year ago

I was working on a new project using node 18 on my mac dev machine and got an error while trying to run said project. Error was Error: Module did not self-register: '/Volumes/Development/projects/pandore/piadvanced/node_modules/i2c-bus/build/Release/i2c.node'. It used to work fine on node 14. Tried different things but what worked was actually getting the native bindings to compile and be declared properly on macos. Might be useful to anyone working on macs.

nleclerc commented 1 year ago

Turns out it's a bit more complicated than just getting things to compile. I'm withdrawing the pull request for now.