>sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F27
>node -v
v4.0.0
>npm -v
2.14.2
> npm install segfault-handler
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
\
> segfault-handler@0.2.4 install /devel/source/xxxxx/apps/services/test/api/node_modules/segfault-handler
> node-gyp rebuild
gyp: /Users/xxxxx/.node-gyp/4.0.0/common.gypi not found (cwd: /devel/source/xxxxx/apps/services/test/api/node_modules/segfault-handler) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/Cellar/nvm/0.26.1/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/Cellar/nvm/0.26.1/versions/node/v4.0.0/bin/node" "/usr/local/Cellar/nvm/0.26.1/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /devel/source/xxxxx/apps/services/test/api/node_modules/segfault-handler
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/Cellar/nvm/0.26.1/versions/node/v4.0.0/bin/node" "/usr/local/opt/nvm/versions/node/v4.0.0/bin/npm" "install" "segfault-handler"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! segfault-handler@0.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the segfault-handler@0.2.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the segfault-handler package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls segfault-handler
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /devel/source/xxxxxx/apps/services/test/api/npm-debug.log
poking around ~/.node-gyp/4.0.0/common.gypi is now ~/.node-gyp/4.0.0/include/node/common.gypi
poking around ~/.node-gyp/4.0.0/common.gypi is now ~/.node-gyp/4.0.0/include/node/common.gypi