Node.js 如何将节点/反应应用程序连接到远程Informix服务器?
我正在尝试制作一个容器化的React应用程序,它需要每隔一段时间与远程Informix box进行一次对话,到目前为止,这是一个PITA 我尝试了所有这些包(),它们似乎都是为了连接到本地Informix实例而构建的 此外,它们都倾向于抛出“找不到绑定文件”错误Node.js 如何将节点/反应应用程序连接到远程Informix服务器?,node.js,reactjs,docker,informix,Node.js,Reactjs,Docker,Informix,我正在尝试制作一个容器化的React应用程序,它需要每隔一段时间与远程Informix box进行一次对话,到目前为止,这是一个PITA 我尝试了所有这些包(),它们似乎都是为了连接到本地Informix实例而构建的 此外,它们都倾向于抛出“找不到绑定文件”错误 [dev:server] /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/bindings/bindings.js:88 err = new Error('Co
[dev:server] /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/bindings/bindings.js:88
err = new Error('Could not locate the bindings file. Tried:\n'
^
Error: Could not locate the bindings file. Tried:
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/build/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/build/Debug/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/build/Release/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/out/Debug/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/Debug/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/out/Release/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/Release/odbc_bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/build/default/odbc_bindings.node
→ /Users/whatevern/dev/rubix/redux/redux-todolist/node_modules/ibm_db/compiled/6.10.0/darwin/x64/odbc_bindings.node
at bindings (/Users/whatever/dev/rubix/redux/redux-todolist/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/lib/odbc.js:27:31)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.defineProperty.value (/Users/whatever/dev/rubix/redux/redux-todolist/tmp/webpack:/external "ibm_db":1:1)
[dev:server] [nodemon] app crashed - waiting for file changes before starting...
[dev:server]/Users/whatever/dev/rubix/redux/redux-todolist/node\u-modules/bindings/bindings.js:88
err=new Error('找不到绑定文件。尝试:\n'
^
错误:找不到绑定文件。已尝试:
→ /Users/whatever/dev/rubix/redux/redux-todolist/node\u-modules/ibm\u-db/build/odbc\u-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_-modules/ibm_-db/build/Debug/odbc_-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_-modules/ibm_-db/build/Release/odbc_-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node_-modules/ibm_-db/out/Debug/odbc_-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node\u-modules/ibm\u-db/Debug/odbc\u-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node\u-modules/ibm\u-db/out/Release/odbc\u-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node\u-modules/ibm\u-db/Release/odbc\u-bindings.node
→ /Users/whatever/dev/rubix/redux/redux-todolist/node\u-modules/ibm\u-db/build/default/odbc\u-bindings.node
→ /Users/whatevern/dev/rubix/redux/redux-todolist/node_-modules/ibm_-db/compiled/6.10.0/darwin/x64/odbc_-bindings.node
在绑定时(/Users/whatever/dev/rubix/redux/redux-todolist/node_-modules/bindings/bindings.js:88:9)
在对象上。(/Users/whatever/dev/rubix/redux/redux-todolist/node_modules/ibm_db/lib/odbc.js:27:31)
在模块处编译(Module.js:570:32)
在Object.Module.\u extensions..js(Module.js:579:10)
在Module.load(Module.js:487:32)
在tryModuleLoad时(module.js:446:12)
在Function.Module.\u加载(Module.js:438:3)
at Module.require(Module.js:497:17)
根据需要(内部/module.js:20:19)
在Object.defineProperty.value(/Users/whatever/dev/rubix/redux/redux-todolist/tmp/webpack:/external“ibm_-db”:1:1)
[dev:server][nodemon]应用程序崩溃-正在等待文件更改,然后再启动。。。
是否有人有任何输入,或者Informix只是有点太老了,太特殊了,无法轻松地挂接到节点应用程序?以下是Informix的节点驱动程序 请参阅给出的示例,并更新远程主机的连接字符串参数。 如果你有什么问题,请告诉我