如何解决“无法解析某些模块oracledb”?

时间:2017-07-14 14:47:02

标签: node.js meteor oracledb-npm

我已经设置了一个流星项目并导入了oracledb node package。 但是在通过meteor run启动项目后,我收到了控制台构建错误。说明Unable to resolve some modules

机器设置:

Windows 7 x64

  • node v6.9.1 x64

  • npm 3.10.9 x64

  • instaclient sdk和basic x86

  • C ++可再发行组件

enter image description here

要调试我的问题:

问题:

如何在流星运行期间解决“无法解析某些模块oracledb”的问题?

设置环境变量并且目录存在:

OCI ENV vars -

enter image description here

路径变量

enter image description here

Oracle instaclient的目录位置

enter image description here

node_modules

meteor run期间的错误日志:

$ meteor run
[[[[[ C:\Users\derp\Documents\Projects\dmo-progam-site ]]]]]

=> Started proxy.
=> A patch (Meteor 1.4.1.3) for your current release is available!
   Update this project now with 'meteor update --patch'.
=> Started MongoDB.

Unable to resolve some modules:

  "../build/Release/oracledb" in
/C/Users/derp/Documents/Projects/dmo-progam-site/node_modules/oracledb/lib/oracledb.js
(os.windows.x86_32)
  "../build/Debug/oracledb" in
/C/Users/derp/Documents/Projects/dmo-progam-site/node_modules/oracledb/lib/oracledb.js
(os.windows.x86_32)

=> Started your app.

=> App running at: http://localhost:3000/

2 个答案:

答案 0 :(得分:2)

检查基本节点-oracledb examples是否在Meteor外部运行。这将确认已安装node-oracledb,并且能够找到Oracle客户端库和MS VS Redistributable。确保Node,Oracle客户端库和Redistributable的体系结构(32位或64位)都匹配。

答案 1 :(得分:1)

我们之前有人报告过,但我无法复制。请仔细阅读我在此处使用的步骤,看看它们是否有用:https://github.com/oracle/node-oracledb/issues/516#issuecomment-267480686

相关问题