justadudewhohacks / justadudewhohacks/opencv4nodejs
Problem in using node v10.16.3
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
I've installed opencv4nodejs 5.5.0 using `npm install --save opencv4nodejs` on my Ubuntu running node v10.16.3 and npm 6.9.0 but on invoking the module it throws the following error:
`Error: The module '/home/nasser/scripts/google_traffic/node_modules/opencv4nodejs/build/Release/opencv4nodejs.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/nasser/scripts/google_traffic/node_modules/opencv4nodejs/lib/cv.js:40:8)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)`.
I can't downgrade to node v6 because other node modules won't work in this version. How can I resolve this problem?
Contributor guide
Assessment
This issue has not been assessed yet.