opencv4nodejs: Failed at the opencv-build@0.0.17 install script.
hi~ @justadudewhohacks
i got trouble in installing opencv4nodejs these days,can you help me to fix the problem?
when i run " npm i -g opencv4nodejs" i got this:(the full log has been appended)
make: *** [all] Error 2 ERR! child process exited with code 2 (for more info, set '--loglevel silly') npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! opencv-build@0.0.17 install: node ./install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the opencv-build@0.0.17 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/xx/.npm/_logs/2019-02-24T10_06_35_829Z-debug.log
hope your reply~thanks very much!
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 19
I have solved the problem.
Hi !
Do you have the same error when you install locally ? (npm install opencv4nodejs without -g option)
From my experience and depending on what you want to do, opencv4nodejs shouldn’t be installed globally. Okay, you may save some time on short term but you won’t be able to detect installation issue, which may cause problem in the future if your project is going to be exported.
for future refer to this refer to this
same error