node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

node-pre-gyp install --fallback-to-build

Open shaikh-shahid opened this issue 8 years ago • 3 comments

Installed OpenCV on mac using homebrew.

Its 3.2.0.

Trying to install opencv package using npm and getting this error.

node-pre-gyp install --fallback-to-build

complete stack:

@0.6.33 npm ERR! Darwin 16.3.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--S" "opencv" npm ERR! node v6.2.0 npm ERR! npm v3.8.9 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the opencv package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs opencv npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls opencv npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/UnixRoot/Desktop/BlogCode/face-detection-nodejs/npm-debug.log

shaikh-shahid avatar Feb 16 '17 12:02 shaikh-shahid

Same here. But this helped: https://github.com/peterbraden/node-opencv/issues/441

roopepal avatar Feb 19 '17 19:02 roopepal

Try Installing pkg-config, if not there.

brew install pkg-config

murukesh avatar Mar 04 '17 11:03 murukesh

Currently they only support for 2.4 OpenCV. So make sure you download the 2.4 OpenCV

hanalaydrus avatar May 06 '17 16:05 hanalaydrus