Fermium / datalogger

The Datalogger physicists deserve
0 stars 0 forks source link

catch missing libusb #75

Closed ddavidebor closed 7 years ago

ddavidebor commented 7 years ago

We could catch the following error:

/Users/davide/Downloads/datalogger/node_modules/ffi/lib/dynamic_library.js:74
    throw new Error('Dynamic Linking Error: ' + err)
    ^

Error: Dynamic Linking Error: dlopen(/Users/davide/Downloads/datalogger/node_modules/data-chan/libDataChan.dylib, 2): Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
  Referenced from: /Users/davide/Downloads/datalogger/node_modules/data-chan/libDataChan.dylib
  Reason: image not found
    at new DynamicLibrary (/Users/davide/Downloads/datalogger/node_modules/ffi/lib/dynamic_library.js:74:11)
    at Object.Library (/Users/davide/Downloads/datalogger/node_modules/ffi/lib/library.js:45:12)
    at Object.<anonymous> (/Users/davide/Downloads/datalogger/node_modules/data-chan/data-chan.js:28:27)
    at Object.<anonymous> (/Users/davide/Downloads/datalogger/node_modules/data-chan/data-chan.js:60:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)