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)
I face a similar problem, this is my environment
i use windows cmd instead of PowerShell
I cleaned the npm cache with
$ npm cache clean --forceThen i installed visual studio build tools with:
npm install --global windows-build-toolsThen, 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-toolsI 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 opencv4nodejsIt took a lot of time but it worked
Sorry for my broken English