我试图从面向下面的错误的节点连接到oracledb

错误:? D: E142 NodeWorkspace Database node_modules oracledb build Release oracledb.node不是应用程序? D: E142 NodeWorkspace Database node_modules oracledb build Release oracledb .module.node在Module.load(module.js:545:32)上的Object.Module._extensions..node(module.js:653:18)上的位于function.Module._load的tryModuleLoad(module.js:508:12) (module.js:500:3)在Module.require(module.js:568:17)上的require(internal / module.js:11:18)。 在Module._compile(module.js:624:30)位于Object.Module._extensions..js(module.js)处(D: E142 NodeWorkspace Database node_modules oracledb lib oracledb.js:35:19) :635:10)在Module.load(module.js:545:32)


你可以试试这个:

Open an elevated CMD prompt (run as Administrator).
navigate to your app folder
npm install --global npm
npm install --global --production windows-build-tools
npm install instantclient
set PATH=%cd%instantclient;%PATH%
set OCI_LIB_DIR=%cd%instantclientsdklibmsvc
set OCI_INC_DIR=%cd%instantclientsdkinclude
npm install oracledb
链接地址: http://www.djcxy.com/p/33035.html

上一篇: I'm trying to connect to oracledb from node facing the below error

下一篇: Error: Route.get() requires a callback function