【发布时间】:2013-02-06 10:25:04
【问题描述】:
我知道这一点都不时髦,但我必须在我的 Meteor 项目中使用 SOAP(我只需要 SOAP 客户端功能)。 Node-soap node.js 模块很棒,它可以在 localhost 上使用这个 hack:How can I deploy node modules in a Meteor app on meteor.com?。
但是当我将我的应用程序部署到 Heroku 时,我得到以下信息:
2013-02-06T10:19:04+00:00 app[web.1]: module.js:485
2013-02-06T10:19:04+00:00 app[web.1]: process.dlopen(filename, module.exports);
2013-02-06T10:19:04+00:00 app[web.1]: ^
2013-02-06T10:19:04+00:00 app[web.1]: Error: /app/pu blic/node_modules/soap/node_modules/node-expat/build/Release/node_expat.node: invalid ELF header
这基本上意味着为我的 Mac OS 预编译的 node_expat.node(node-soap 的依赖项)存在二进制不兼容。
知道如何正确安装 node-soap 模块吗?试图在 atmospehre 上找到类似的东西,但没有运气:所有具有服务器部分的模块都非常简单,没有单一的“要求”。
【问题讨论】:
标签: meteor