{"action":"closed","issue":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/230","labels_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/230/comments","events_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/230/events","html_url":"https://github.com/peterbraden/node-opencv/issues/230","id":58245028,"number":230,"title":"Problem Installation on OS X","user":{"login":"alamcordeiro","id":1471463,"avatar_url":"https://avatars.githubusercontent.com/u/1471463?v=3","gravatar_id":"","url":"https://api.github.com/users/alamcordeiro","html_url":"https://github.com/alamcordeiro","followers_url":"https://api.github.com/users/alamcordeiro/followers","following_url":"https://api.github.com/users/alamcordeiro/following{/other_user}","gists_url":"https://api.github.com/users/alamcordeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/alamcordeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alamcordeiro/subscriptions","organizations_url":"https://api.github.com/users/alamcordeiro/orgs","repos_url":"https://api.github.com/users/alamcordeiro/repos","events_url":"https://api.github.com/users/alamcordeiro/events{/privacy}","received_events_url":"https://api.github.com/users/alamcordeiro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-02-19T18:02:33Z","updated_at":"2015-02-22T17:28:59Z","closed_at":"2015-02-22T17:28:58Z","body":"Hello\r\n\r\nI have installed the opencv 3.0 using brew(no require sudo) on MAC OS 10.10\r\nWorks perfectly with python \r\nRunning ```npm install opencv```\r\n\r\n```\r\n1276 error Darwin 14.1.0\r\n1277 error argv \"node\" \"/usr/local/bin/npm\" \"install\" \"opencv\"\r\n1278 error node v0.12.0\r\n1279 error npm  v2.5.1\r\n1280 error code ELIFECYCLE\r\n1281 error opencv@3.0.0 install: `node-pre-gyp install --fallback-to-build`\r\n1281 error Exit status 1\r\n1282 error Failed at the opencv@3.0.0 install script 'node-pre-gyp install --fallback-to-build'.\r\n1282 error This is most likely a problem with the opencv package,\r\n1282 error not with npm itself.\r\n1282 error Tell the author that this fails on your system:\r\n1282 error     node-pre-gyp install --fallback-to-build\r\n1282 error You can get their info via:\r\n1282 error     npm owner ls opencv\r\n1282 error There is likely additional logging output above.\r\n1283 verbose exit [ 1, true ]\r\n```\r\n\r\nRunning  ``` node-pre-gyp install --fallback-to-build``` into node-opencv-master  repository clone folder:\r\n\r\n\r\n```\r\n\r\nnode-pre-gyp info it worked if it ends with ok\r\nnode-pre-gyp info using node-pre-gyp@0.6.3\r\nnode-pre-gyp info using node@0.12.0 | darwin | x64\r\nnode-pre-gyp info check checked for \"/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64/opencv.node\" (not found)\r\nnode-pre-gyp http GET https://node-opencv.s3.amazonaws.com/opencv/v3.0.0/Release/node-v14-darwin-x64.tar.gz\r\nnode-pre-gyp http 403 https://node-opencv.s3.amazonaws.com/opencv/v3.0.0/Release/node-v14-darwin-x64.tar.gz\r\nnode-pre-gyp http 403 status code downloading tarball https://node-opencv.s3.amazonaws.com/opencv/v3.0.0/Release/node-v14-darwin-x64.tar.gz (falling back to source compile with node-gyp)\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@1.0.2\r\ngyp info using node@0.12.0 | darwin | x64\r\nchild_process: customFds option is deprecated, use stdio instead.\r\ngyp info spawn python\r\ngyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'make',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Library/WebServer/Documents/node_modules/node-opencv-master/build/config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/alan/.node-gyp/0.12.0/common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=/Users/alan/.node-gyp/0.12.0',\r\ngyp info spawn args   '-Dmodule_root_dir=/Library/WebServer/Documents/node_modules/node-opencv-master',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--no-parallel',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\nPackage opencv was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `opencv.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'opencv' found\r\ngyp: Call to 'pkg-config --cflags opencv' returned exit status 1. while trying to load binding.gyp\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)\r\ngyp ERR! System Darwin 14.1.0\r\ngyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64/opencv.node\" \"--module_name=opencv\" \"--module_path=/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64\"\r\ngyp ERR! cwd /Library/WebServer/Documents/node_modules/node-opencv-master\r\ngyp ERR! node -v v0.12.0\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64/opencv.node --module_name=opencv --module_path=/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/node-pre-gyp/lib/util/compile.js:71:29)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\nnode-pre-gyp ERR! stack     at maybeClose (child_process.js:1008:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1080:5)\r\nnode-pre-gyp ERR! System Darwin 14.1.0\r\nnode-pre-gyp ERR! command \"node\" \"/usr/local/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /Library/WebServer/Documents/node_modules/node-opencv-master\r\nnode-pre-gyp ERR! node -v v0.12.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.3\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64/opencv.node --module_name=opencv --module_path=/Library/WebServer/Documents/node_modules/node-opencv-master/build/opencv/v3.0.0/Release/node-v14-darwin-x64' (1)\r\n\r\n```\r\n\r\n\r\n\r\n\r\n"}}