{"action":"created","issue":{"url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/8","labels_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/8/comments","events_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/8/events","html_url":"https://github.com/ibmdb/node-ibm_db/issues/8","id":39209134,"number":8,"title":"npm install should provide diagnostics on error","user":{"login":"pmuellr","id":25117,"avatar_url":"https://avatars.githubusercontent.com/u/25117?v=3","gravatar_id":"","url":"https://api.github.com/users/pmuellr","html_url":"https://github.com/pmuellr","followers_url":"https://api.github.com/users/pmuellr/followers","following_url":"https://api.github.com/users/pmuellr/following{/other_user}","gists_url":"https://api.github.com/users/pmuellr/gists{/gist_id}","starred_url":"https://api.github.com/users/pmuellr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmuellr/subscriptions","organizations_url":"https://api.github.com/users/pmuellr/orgs","repos_url":"https://api.github.com/users/pmuellr/repos","events_url":"https://api.github.com/users/pmuellr/events{/privacy}","received_events_url":"https://api.github.com/users/pmuellr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-07-31T15:58:06Z","updated_at":"2015-03-17T14:28:37Z","closed_at":null,"body":"This package appears to die various sorts of death when you don't have ODBC/sql stuff pre-installed on your system.  Eg, when trying to install on my mac, I see:\r\n\r\n    > ibm_db@0.0.1 preinstall ~/tmp/foo/bar/node_modules/ibm_db\r\n    > node-gyp configure build\r\n\r\n      CXX(target) Release/obj.target/odbc_bindings/src/odbc.o\r\n    In file included from ../src/odbc.cpp:25:\r\n    ../src/odbc.h:29:10: fatal error: 'sqlcli1.h' file not found\r\n    #include <sqlcli1.h>\r\n             ^\r\n    1 error generated.\r\n    make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Error 1\r\n    gyp ERR! build error\r\n    gyp ERR! stack Error: `make` failed with exit code: 2\r\n    ...\r\n    gyp ERR! command \r\n       \"node\" \r\n       \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \r\n       \"configure\" \r\n       \"build\"\r\n    gyp ERR! cwd ~/tmp/foo/bar/node_modules/ibm_db\r\n    gyp ERR! node -v v0.10.26\r\n    gyp ERR! node-gyp -v v0.12.2\r\n    gyp ERR! not ok\r\n\r\nIs there any way to \"catch\" that, to make it a little more understandable?  Perhaps even tell the user where to get the package that needs to be pre-installed?"},"comment":{"url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/comments/82383007","html_url":"https://github.com/ibmdb/node-ibm_db/issues/8#issuecomment-82383007","issue_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/8","id":82383007,"user":{"login":"mil","id":1465568,"avatar_url":"https://avatars.githubusercontent.com/u/1465568?v=3","gravatar_id":"","url":"https://api.github.com/users/mil","html_url":"https://github.com/mil","followers_url":"https://api.github.com/users/mil/followers","following_url":"https://api.github.com/users/mil/following{/other_user}","gists_url":"https://api.github.com/users/mil/gists{/gist_id}","starred_url":"https://api.github.com/users/mil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mil/subscriptions","organizations_url":"https://api.github.com/users/mil/orgs","repos_url":"https://api.github.com/users/mil/repos","events_url":"https://api.github.com/users/mil/events{/privacy}","received_events_url":"https://api.github.com/users/mil/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T14:28:37Z","updated_at":"2015-03-17T14:28:37Z","body":"Full error trace:\r\n```\r\n~/D/r/projectregistrationapp > npm install\r\nnpm WARN package.json ProjectRegistration@0.0.1 No repository field.\r\nnpm WARN package.json ProjectRegistration@0.0.1 No README data\r\n\\\r\n> ibm_db@0.0.8 install /Users/mil/Desktop/repos/projectregistrationapp/node_modules/ibm_db\r\n> node installer/driverInstall.js\r\n\r\nDownloading DB2 ODBC CLI Driver from http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz...\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: EACCES, open '/Users/mil/Desktop/repos/projectregistrationapp/node_modules/ibm_db/installer/clidriver/msg/en_US.iso88591/db2adm.mo'\r\n\r\nnpm ERR! ibm_db@0.0.8 install: `node installer/driverInstall.js`\r\nnpm ERR! Exit status 8\r\nnpm ERR! \r\nnpm ERR! Failed at the ibm_db@0.0.8 install script.\r\nnpm ERR! This is most likely a problem with the ibm_db package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node installer/driverInstall.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls ibm_db\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Darwin 13.4.0\r\nnpm ERR! command \"node\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! cwd /Users/mil/Desktop/repos/projectregistrationapp\r\nnpm ERR! node -v v0.10.29\r\nnpm ERR! npm -v 1.5.0-alpha-4\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /Users/mil/Desktop/repos/projectregistrationapp/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```"}}