我无法运行最简单的 Node.js 原生扩展类型,即 Hello World,我不知道为什么。
我在这里使用示例:http ://nodejs.org/api/addons.html#addons_hello_world
node-gyp运行得很好,但是当我在节点中尝试require它时,我得到一个错误:
错误:无效参数
在 Object..node (module.js:472:11)
在 Module.load (module.js:348:31)
在 Function._load (module.js:308:12)
在 Module.require (module.js:354:17)
在需要 (module.js:370:17)
在回复:1:13
在 REPLServer.eval (repl.js:80:21)
在 repl.js:190:20
在 REPLServer.eval (repl.js:87:5)
在界面。(repl.js:182:12)
这是什么,在使用本机扩展时如何调试这样的错误?