I have been trying to install opencv4nodejs package with npm install opencv4nodejs command. But unfortunately the below is being thrown. Have done some research and done few tweaks, but all those doesn't worked.
Below is the error:
manikanthvanka@Manikanths-MacBook-Pro react-file-upload-master % npm install opencv4nodejs
> opencv-build@0.1.9 install /Users/manikanthvanka/Downloads/react-
file-upload-master/node_modules/opencv-build
> node ./install.js
info install OPENCV4NODEJS_DISABLE_AUTOBUILD is set
info install skipping auto build...
> opencv4nodejs@5.6.0 install /Users/manikanthvanka/Downloads/react-
file-upload-master/node_modules/opencv4nodejs
> node ./install/install.js
info install OPENCV_LIB_DIR is not set, looking for default lib dir
info install using lib dir: /usr/local/lib
/Users/manikanthvanka/Downloads/react-file-upload-
master/node_modules/opencv4nodejs/install/install.js:45
throw new Error('no OpenCV libraries found in lib dir: ' + libDir)
^
Error: no OpenCV libraries found in lib dir: /usr/local/lib
at Object.<anonymous> (/Users/manikanthvanka/Downloads/react-file-
upload-master/node_modules/opencv4nodejs/install/install.js:45:9)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js
(internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
npm WARN @tinymce/tinymce-react@3.10.2 requires a peer of
react@^17.0.1 but none is installed. You must install peer
dependencies yourself.
npm WARN @tinymce/tinymce-react@3.10.2 requires a peer of react-
dom@^17.0.1 but none is installed. You must install peer
dependencies yourself.
npm WARN bootstrap@4.6.0 requires a peer of jquery@1.9.1 - 3 but
none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.6.0 requires a peer of popper.js@^1.16.1 but n.
one is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >=
3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >=
3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none
is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv4nodejs@5.6.0 install: `node ./install/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv4nodejs@5.6.0 install script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/manikanthvanka/.npm/_logs/2021-03-
07T11_03_42_873Z-debug.log
manikanthvanka@Manikanths-MacBook-Pro react-file-upload-master %