错误:\?\ D:\ E142 \ NodeWorkspace \ Database \ node_modules \ oracledb \ build \ Release \ oracledb.node不是应用程序\?\ D:\ E142 \ NodeWorkspace \ Database \ node_modules \ oracledb \ build \在函数的tryModuleLoad(module.js:508:12)的Module.load(module.js:545:32)的Object.Module._extensions..node(module.js:653:18)处发布\ oracledb.node。 Module.reload(module.js:500:3)在Module上的require(internal / module.js:11:18)处的Module.require(module.js:568:17)。 (D:\ E142 \ NodeWorkspace \ Database \ node_modules \ oracledb \ lib \ oracledb.js:35:19)在Module._compile(module.js:624:30)处于Object.Module._extensions..js(module.js) :635:10)在Module.load(module.js:545:32)
答案 0 :(得分:0)
你可以试试这个:
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%\instantclient\sdk\lib\msvc
set OCI_INC_DIR=%cd%\instantclient\sdk\include
npm install oracledb