本文介绍了如何解决“无法解析某些模块oracledb"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了一个流星项目,并导入了 oracledb节点包.但是通过meteor run启动项目后,出现控制台生成错误.指出Unable to resolve some modules.

I've setup a meteor project and imported the oracledb node package.But after starting the project via meteor run I get a console build error. Stating that Unable to resolve some modules.

机器设置:

Windows 7 x64

Windows 7 x64

  • 节点v6.9.1 x64

  • node v6.9.1 x64

npm 3.10.9 x64

npm 3.10.9 x64

instaclient sdk和基本x86

instaclient sdk and basic x86

C ++可再发行文件

C++ redistributables

要调试我遇到的问题,

问题:

在流星运行期间如何解决无法解析某些模块oracledb"?

How can you resolve "Unable to resolve some modules oracledb" during a meteor run?

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

Environment Variables are set and directory exists:

OCI ENV变量-

路径var-

Oracle instaclient的目录位置

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/

推荐答案

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

Check that basic node-oracledb examples run outside Meteor. This will confirm that node-oracledb is installed and able to find the Oracle client libraries and MS VS Redistributable. Make sure the architectures (32-bit or 64-bit) of Node, Oracle client libraries, and the Redistributable all match.

这篇关于如何解决“无法解析某些模块oracledb"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 08:27