opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

Unable to install/build on node versions higher that version 14, npm version 6

Open jmanring opened this issue 2 years ago • 1 comments

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. (node_modules/opencv4nodejs/install/install.js:37:9) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) npm ERR! at node:internal/main/run_main_module:17:47

I tried with and without OPENCV4NODEJS_DISABLE_AUTOBUILD flag set. OpenCV version 5.6.0

With OpenCV-contrib? no

OS: Ubuntu

jmanring avatar Jun 21 '22 13:06 jmanring

This project is not maintained anymore try with @u4/opencv4nodejs

UrielCh avatar Jun 21 '22 17:06 UrielCh