使meteor客户端忽略特定的节点模块,而服务器应该使用它

时间:2016-06-16 07:14:27

标签: javascript node.js meteor npm meteor-clt

我在我的库中使用了这个模块https://www.npmjs.com/package/chilkat_win32我尝试在我的流星项目中使用这个库。但是当我跑步时,我得到以下错误。

W20160616-12:38:10.272(5.5)? (STDERR)
W20160616-12:38:10.272(5.5)? (STDERR) C:\Users\macilamanym\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245
W20160616-12:38:10.272(5.5)? (STDERR)                                           throw(ex);
W20160616-12:38:10.272(5.5)? (STDERR)                                                 ^
W20160616-12:38:10.272(5.5)? (STDERR) Error: %1 is not a valid Win32 application.
=> Exited with code: 8
W20160616-12:38:10.272(5.5)? (STDERR)
W20160616-12:38:10.272(5.5)? (STDERR) G:\Projects\Kube 2.0\edge-node-sdk-typescript\edge-node-sdk-js-examples\edge-node-sdk-meteor-example\simple-todos\node_modules\edge-node-sdk-js\node_modules\chilkat_win32\chilkat.node
W20160616-12:38:10.272(5.5)? (STDERR)     at Module.load (module.js:356:32)
W20160616-12:38:10.272(5.5)? (STDERR)     at Function.Module._load (module.js:312:12)
W20160616-12:38:10.272(5.5)? (STDERR)     at Module.require (module.js:364:17)
W20160616-12:38:10.272(5.5)? (STDERR)     at require (module.js:380:17)
W20160616-12:38:10.272(5.5)? (STDERR)     at Object.<anonymous> (G:\Projects\Kube 2.0\edge-node-sdk-typescript\edge-node-sdk-js-examples\edge-node-sdk-meteor-example\simple-todos\node_modules\edge-node-sdk-js\lib\main\EdgeNode.js:9:15)
W20160616-12:38:10.272(5.5)? (STDERR)     at Module._compile (module.js:456:26)
W20160616-12:38:10.272(5.5)? (STDERR)     at Object.Module._extensions..js (module.js:474:10)
W20160616-12:38:10.272(5.5)? (STDERR)     at Module.load (module.js:356:32)
W20160616-12:38:10.272(5.5)? (STDERR)     at Function.Module._load (module.js:312:12)
W20160616-12:38:10.272(5.5)? (STDERR)     at Module.require (module.js:364:17)
W20160616-12:38:10.272(5.5)? (STDERR)     at require (module.js:380:17)
W20160616-12:38:10.272(5.5)? (STDERR)     at Object.<anonymous> (G:\Projects\Kube 2.0\edge-node-sdk-typescript\edge-node-sdk-js-examples\edge-node-sdk-meteor-example\simple-todos\node_modules\edge-node-sdk-js\lib\index.js:2:18)

据我所知,这只能在服务器端而不是客户端运行。但是我怎样才能让它只与流星服务器一起工作并让流星客户端忽略它呢?任何帮助将不胜感激。

0 个答案:

没有答案