win7下使用nodejs连接oracle,运行时出错
发布于 10 年前 作者 yanxe 4027 次浏览 最后一次编辑是 8 年前 来自 问答

最近使用nodejs在win7下连接oracle,安装的时候虽然有一些警告,但还是安装成功了。 但是在使用的时候出现了下面的错误: module.js:356 Module._extensions[extension](this, filename); ^ Error: The specified module could not be found.

E:\Workspaces\nodejs\oracle-test\node_modules\oracle\build\Release\oracle_bindings.node at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (E:\Workspaces\nodejs\oracle-test\node_modules\oracle\lib\oracle.js:2:16) at Module._compile (module.js:456:26) at Object.Module._extensions…js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) 有人知道怎么解决吗

4 回复

不负责的说

  1. 没讲用的什么module
  2. oracle版本没讲,12c的连接串和以前的可能不同,因为结构变化了;
  3. 我觉得还是用Linux版试试先吧,因为12c这个版本可能还不怎么习惯win;

@ChopperLee2011 node用的是0.10.32最新的,oracle是用npm install oracle安装的,看了下版本是0.3.7, 我是直接require(‘oracle’)的时候就失败了,哎,弄了一下午没弄好,打算去linux环境下试一下

感觉编译某些东西的时候失败了

@yanxe

oracle是用npm install oracle安装的

我说的是Oracle server ,你说的是Oracle driver;

Oracle driver for Node.js It is known to work with Oracle 10, 11, and 12, and has been mostly tested on Linux, but ***should *** also work on OS X and Windows 7+

如果windows真不行的话,其实你可以提issue

回到顶部