问题描述
我已经设置了一个流星项目,并导入了 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
要调试我遇到的问题,
- 按照本期中的调试步骤操作-无法解析Meteor 1.4中的某些模块. 1.1
- 检查该软件包是否在node_modules中存在,
问题:
在流星运行期间如何解决无法解析某些模块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"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!