我正在尝试使用https://github.com/ddopson/node-segfault-handler来调试分段错误异常。我正在运行 OSX 10.8.6
但是,在存储库上运行 npm rebuild 后,我收到以下错误:
node example.js
module.js:485
process.dlopen(filename, module.exports);
^
Error: dlopen(/Users/xxx/lever/ats/node_modules/segvcatcher/build/Release/segvhandler_native.node, 1): no suitable image found. Did find:
/Users/xxx/lever/ats/node_modules/segvcatcher/build/Release/segvhandler_native.node: mach-o, but wrong architecture
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/xxx/lever/ats/node_modules/segvcatcher/lib/segvhandler.js:7:16)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)