我是nodejs的新手。我正在尝试从c++ -js调用动态链接库中的node API。到目前为止,我发现ffi可以用来做这件事。我按照安装说明安装了必要的构建工具。但是当我运行npm install ffi时,我得到了以下错误。 我做错了什么吗?: function does not take 0 arguments [D:\CodeLathe\ElectronPOC\Practice\dll\ElectroncallingDll\node_module: functi
我的Nodejs应用程序在ubuntu中运行良好。当我试图在Windows机器上部署相同的程序时,它显示了下面的错误。=>node server.js D:\home\site\wwwroot\node_modules\ffi\node_modules\bindings\bindings.js) at Function