How to resolve “Unable to resolve some modules ora

2019-07-03 23:48发布

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.

Machine setup:

Windows 7 x64

  • node v6.9.1 x64

  • npm 3.10.9 x64

  • instaclient sdk and basic x86

  • C++ redistributables

enter image description here

To debug the issue I've:

Question:

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

Environment Variables are set and directory exists:

OCI ENV vars -

enter image description here

Path var-

enter image description here

Directory location of Oracle instaclient

enter image description here

node_modules

Error log during 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条回答
做个烂人
2楼-- · 2019-07-04 00:17

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.

查看更多
地球回转人心会变
3楼-- · 2019-07-04 00:23

We had someone report this before but I couldn't reproduce. Please look through the steps I used here to see if they help: https://github.com/oracle/node-oracledb/issues/516#issuecomment-267480686

查看更多
登录 后发表回答