{"action":"created","issue":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/325","labels_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/325/comments","events_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/325/events","html_url":"https://github.com/peterbraden/node-opencv/issues/325","id":113917426,"number":325,"title":"npm install failed","user":{"login":"ecSpl01t","id":5649365,"avatar_url":"https://avatars.githubusercontent.com/u/5649365?v=3","gravatar_id":"","url":"https://api.github.com/users/ecSpl01t","html_url":"https://github.com/ecSpl01t","followers_url":"https://api.github.com/users/ecSpl01t/followers","following_url":"https://api.github.com/users/ecSpl01t/following{/other_user}","gists_url":"https://api.github.com/users/ecSpl01t/gists{/gist_id}","starred_url":"https://api.github.com/users/ecSpl01t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecSpl01t/subscriptions","organizations_url":"https://api.github.com/users/ecSpl01t/orgs","repos_url":"https://api.github.com/users/ecSpl01t/repos","events_url":"https://api.github.com/users/ecSpl01t/events{/privacy}","received_events_url":"https://api.github.com/users/ecSpl01t/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-28T20:40:47Z","updated_at":"2016-01-09T16:47:07Z","closed_at":null,"body":"Linux version 3.13.0-40-generic (buildd@comet) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014\r\n\r\nnpm : 2.11.3\r\nnode: v0.12.7\r\n\r\n# npm install opencv\r\n|\r\n> opencv@3.2.0 install */Install-OpenCV/node_modules/opencv\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nchild_process: customFds option is deprecated, use stdio instead.\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 >= 2.3.1\"' 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:355:16)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\ngyp ERR! System Linux 3.13.0-40-generic\r\ngyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--name=opencv\" \"--configuration=Release\" \"--module_name=opencv\" \"--version=3.2.0\" \"--major=3\" \"--minor=2\" \"--runtime=node\" \"--node_abi=node-v14\" \"--platform=linux\" \"--target_platform=linux\" \"--arch=x64\" \"--target_arch=x64\" \"--module_main=./lib/opencv\" \"--host=https://node-opencv.s3.amazonaws.com/\" \"--module_path=*/Install-OpenCV/node_modules/opencv/build/opencv/v3.2.0/Release/node-v14-linux-x64\" \"--module=*/Install-OpenCV/node_modules/opencv/build/opencv/v3.2.0/Release/node-v14-linux-x64/opencv.node\" \"--remote_path=./opencv/v3.2.0/Release/\" \"--package_name=node-v14-linux-x64.tar.gz\" \"--staged_tarball=build/stage/opencv/v3.2.0/Release/node-v14-linux-x64.tar.gz\" \"--hosted_path=https://node-opencv.s3.amazonaws.com/opencv/v3.2.0/Release/\" \"--hosted_tarball=https://node-opencv.s3.amazonaws.com/opencv/v3.2.0/Release/node-v14-linux-x64.tar.gz\"\r\ngyp ERR! cwd */Install-OpenCV/node_modules/opencv\r\ngyp ERR! node -v v0.12.7\r\ngyp ERR! node-gyp -v v2.0.1\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 rebuild --name=opencv --configuration=Release --module_name=opencv --version=3.2.0 --major=3 --minor=2 --runtime=node --node_abi=node-v14 --platform=linux --target_platform=linux --arch=x64 --target_arch=x64 --module_main=./lib/opencv --host=https://node-opencv.s3.amazonaws.com/ --module_path=*/Install-OpenCV/node_modules/opencv/build/opencv/v3.2.0/Release/node-v14-linux-x64 --module=*/Install-OpenCV/node_modules/opencv/build/opencv/v3.2.0/Release/node-v14-linux-x64/opencv.node --remote_path=./opencv/v3.2.0/Release/ --package_name=node-v14-linux-x64.tar.gz --staged_tarball=build/stage/opencv/v3.2.0/Release/node-v14-linux-x64.tar.gz --hosted_path=https://node-opencv.s3.amazonaws.com/opencv/v3.2.0/Release/ --hosted_tarball=https://node-opencv.s3.amazonaws.com/opencv/v3.2.0/Release/node-v14-linux-x64.tar.gz' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (*/Install-OpenCV/node_modules/opencv/node_modules/node-pre-gyp/lib/util/compile.js:76: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:1015:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)\r\nnode-pre-gyp ERR! System Linux 3.13.0-40-generic\r\nnode-pre-gyp ERR! command \"node\" \"*/Install-OpenCV/node_modules/opencv/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd */Install-OpenCV/node_modules/opencv\r\nnode-pre-gyp ERR! node -v v0.12.7\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.5.31\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 rebuild --name=opencv --configuration=Release --module_name=opencv --version=3.2.0 --major=3 --minor=2 --runtime=node --node_abi=node-v14 --platform=linux --target_platform=linux --arch=x64 --target_arch=x64 --module_main=./lib/opencv --host=https://node-opencv.s3.amazonaws.com/ --module_path=*/Install-OpenCV/node_modules/opencv/build/opencv/v3.2.0/Release/node-v14-linux-x64 --module=*/Install-OpenCV/node_modules/opencv/build/opencv/v3.2.0/Release/node-v14-linux-x64/opencv.node --remote_path=./opencv/v3.2.0/Release/ --package_name=node-v14-linux-x64.tar.gz --staged_tarball=build/stage/opencv/v3.2.0/Release/node-v14-linux-x64.tar.gz --hosted_path=https://node-opencv.s3.amazonaws.com/opencv/v3.2.0/Release/ --hosted_tarball=https://node-opencv.s3.amazonaws.com/opencv/v3.2.0/Release/node-v14-linux-x64.tar.gz' (1)\r\nnpm ERR! Linux 3.13.0-40-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"opencv\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! opencv@3.2.0 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the opencv@3.2.0 install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! This is most likely a problem with the opencv package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls opencv\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     */npm-debug.log"},"comment":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/comments/170259018","html_url":"https://github.com/peterbraden/node-opencv/issues/325#issuecomment-170259018","issue_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/325","id":170259018,"user":{"login":"guatedude2","id":918429,"avatar_url":"https://avatars.githubusercontent.com/u/918429?v=3","gravatar_id":"","url":"https://api.github.com/users/guatedude2","html_url":"https://github.com/guatedude2","followers_url":"https://api.github.com/users/guatedude2/followers","following_url":"https://api.github.com/users/guatedude2/following{/other_user}","gists_url":"https://api.github.com/users/guatedude2/gists{/gist_id}","starred_url":"https://api.github.com/users/guatedude2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guatedude2/subscriptions","organizations_url":"https://api.github.com/users/guatedude2/orgs","repos_url":"https://api.github.com/users/guatedude2/repos","events_url":"https://api.github.com/users/guatedude2/events{/privacy}","received_events_url":"https://api.github.com/users/guatedude2/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T16:47:07Z","updated_at":"2016-01-09T16:47:07Z","body":"Deleting ~/.node-gyp worked for me too"}}