opencv4nodejs: opencv4nodejs build error

can anyone see what went wrong? Please let me know if you want to know addition information besides this

[ 40%] Built target libprotobuf
make: *** [all] Error 2
ERR! child process exited with code 2
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv-build@0.0.14 install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv-build@0.0.14 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/abhimanyuaryan/.npm/_logs/2018-09-01T03_26_24_849Z-debug.log
npm install -g opencv4nodejs  324.91s user 58.95s system 28% cpu 22:21.78 total

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (5 by maintainers)

Most upvoted comments

I face a similar problem, this is my environment

  • windows 10 enterprise
  • node v8.12.0
  • npm 6.4.1

i use windows cmd instead of PowerShell

I cleaned the npm cache with

$ npm cache clean --force

Then i installed visual studio build tools with:

npm install --global windows-build-tools

Then, taking into account that didn’t work the last time, i closed the cmd, and searched the installation directory, i found a hidden folder which had the visual studio installer in my user folder

C:\Users\andresap\.windows-build-tools

I executed the vs_BuildTools.exe file, and that show that i have just installed the Visual Studio Build Tools 2017 version 15.8.7 and that the version 15.8.8 was available, and i installed it

Then i open a new cmd, and execute

$ npm install --save opencv4nodejs

It took a lot of time but it worked

Sorry for my broken English