简体   繁体   English

找不到指定的模块 - 节点 oracledb

[英]The specified module could not be found - node oracledb

I have node app running using npm package oracledb.我有使用 npm 包 oracledb 运行的节点应用程序。 I am able to connect to remote oracle12c db successfully.我能够成功连接到远程 oracle12c db。 Now issue is, in production box I cannot install all pre-requisite so I zipped working code and unzipped to the new windows box (node.js and oracle client libraries are installed with proper path).现在的问题是,在生产框中我无法安装所有先决条件,所以我压缩了工作代码并解压缩到新的 windows 框(node.js 和 oracle 客户端库以正确的路径安装)。 But when I start node server I get error.但是当我启动节点服务器时出现错误。 Is there anything I am missing?有什么我想念的吗? Please guide.请指导。 Thanks谢谢

C:\node_modules\oracledb\lib\oracledb.js:38
    throw err;
    ^

Error: The specified module could not be found.
\\?\C:\node_modules\oracledb\build\Release\oracledb.node
    at Object.Module._extensions..node (module.js:664:18)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\node_modules\oracledb\lib\oracledb.js:35:19)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xyz@1.0.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xyz@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Check the installation instructions about copying binaries between machines .检查有关在机器之间复制二进制文件安装说明 You may be missing the Visual Studio Redistributable.您可能缺少 Visual Studio Redistributable。

If you have Oracle client 12.2, install the Visual Studio 2013 Redistributable.如果您有 Oracle 客户端 12.2,请安装 Visual Studio 2013 Redistributable。 For Oracle client 12.1 install the Visual Studio 2010 Redistributable.对于 Oracle 客户端 12.1,安装 Visual Studio 2010 Redistributable。 For Oracle client 11.2 install the Visual Studio 2005 Redistributable.对于 Oracle 客户端 11.2,安装 Visual Studio 2005 Redistributable。

The forthcoming node-oracledb v2 has prebuilt binaries (and better bootstrap error messages).即将推出的 node-oracledb v2 具有预构建的二进制文件(以及更好的引导错误消息)。 You could just try installing the development release of v2 by using npm install oracledb@dev The production version is coming soon.您可以尝试使用npm install oracledb@dev v2 的开发版本。生产版本即将推出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 节点 OracleDB 错误:找不到指定的过程 - Node OracleDB Error: The specified procedure could not be found 使用node-gyp构建画布时,“无法找到指定的模块” - “The specified module could not be found” when building a canvas with node-gyp oracledb节点模块中的connectString - connectString in oracledb node module 错误:找不到指定的模块 - Error: The specified module could not be found 在node.js中使用&#39;scrypt&#39;模块时出现&#39;找不到指定的模块&#39;错误 - 'The specified module could not be found' error when using 'scrypt' module in node.js 超级账本 Aries 上出现错误“找不到指定的模块” - Error "The specified module could not be found" on hyperledger Aries 在Server 2008节点js上安装Oracle模块:找不到指定的过程 - Oracle module installation on Server 2008 node js: specified procedure could not be found 通过EC2上的节点OracleDB模块连接到OracleDB - Connecting to OracleDB via Node OracleDB module on EC2 更新查询在 node-oracledb 模块中挂起 - Update query hangs in node-oracledb module 错误:找不到指定的模块。 \\?\C:\Program Files\nodejs\tf\node_modules\@tensorflow\tfjs-node\lib\napi-v5\tf js_binding.node - Error: The specified module could not be found. \\?\C:\Program Files\nodejs\tf\node_modules\@tensorflow\tfjs-node\lib\napi-v5\tf js_binding.node
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM