opencv4nodejs
opencv4nodejs copied to clipboard
Unable to install/build on node versions higher that version 14, npm version 6
Error Message
$ npm install
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known
to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path node_modules/opencv4nodejs
npm ERR! command failed
npm ERR! command sh -c node ./install/install.js
npm ERR! info install using lib dir: node_modules/opencv-build/opencv/build/lib
npm ERR! node_modules/opencv4nodejs/install/install.js:37
npm ERR! throw new Error('library dir does not exist: ' + libDir)
npm ERR! ^
npm ERR!
npm ERR! Error: library dir does not exist: node_modules/opencv-build/opencv/build/lib
npm ERR! at Object.
I tried with and without OPENCV4NODEJS_DISABLE_AUTOBUILD flag set. OpenCV version 5.6.0
With OpenCV-contrib? no
OS: Ubuntu
This project is not maintained anymore try with @u4/opencv4nodejs