TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
453 stars 141 forks source link

Emit "binding.node not found" error sometimes #75

Closed wangpin34 closed 6 years ago

wangpin34 commented 7 years ago

Hi,

Recently I worked with node-ffi and found a cirtical issue about ref(May be bindings).

binding.node not found

Above error is throw from following code from /lib/ref.js

exports = module.exports = require('bindings')('binding')

I also added try - catch here and found the error happened here truly.

Any ideas?

Thanks

--- Screenshot / By the way, I create an electron application using node-ffi to load native dll. jserror

TooTallNate commented 6 years ago

This means that the build process failed or did not run on your machine. Since you mention Electron, please make sure you follow the instructions at this doc page: https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md