I am getting this error when running an example from OpenCV Node
return process.dlopen(module, path._makeLong(filename)); ^ Error: /home/sunny/face/build/opencv/v5.0.0/Release/node-v46-linux-x64/opencv.node: undefined symbol: _ZNK2cv9Algorithm5writeERNS_11FileStorageE at Error (native) at Object.Module._extensions..node (module.js:460:18) at Module.load (module.js:356:32) at Function.Module._load (module.js:313:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object. (/home/sunny/face/lib/bindings.js:4:15) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32)
Try refreshing your installed modules by
$ rm -rf node_modules/
$ npm update
I got errors relating to process.dlopen
when using Gulp and node-sass. Clearing the installed modules fixed the issue for me.
EDIT: Not certain how OpenCV works (or what it actually is), but I presume it handles NodeJS modules similarly to regular NodeJS applications, where you can refresh the module collection.
Use this command, it works fine:
npm rebuild bcrypt --build-from-source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With