我正在使用Windows 7.我已尝试过这里和那里提到的一些解决方案,但似乎没有任何效果。 我正在尝试使用命令" npm install oracledb"安装oracledb模块,但是我收到以下错误:
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "oracledb"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! oracledb@0.6.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oracledb@0.6.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the oracledb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oracledbnpm ERR! There is likely additional logging output above.
详细日志说:
229 verbose stack Error: oracledb@0.6.0 install: `node-gyp rebuild`
229 verbose stack Exit status 1
229 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16)
229 verbose stack at EventEmitter.emit (events.js:110:17)
229 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
229 verbose stack at ChildProcess.emit (events.js:110:17)
229 verbose stack at maybeClose (child_process.js:1015:16)
229 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
230 verbose pkgid oracledb@0.6.0
以前有人遇到过这个问题吗?
答案 0 :(得分:0)
此问题现已解决。我的python变量有一些问题,我已将其设置为其他目录。一旦设置了python变量,它就会在我的Visual Studio中抛出一些错误,说无法找到“stdio.h”。我不得不修复我的Visual Studio安装,因为我相信C ++ Core库存在一些问题。 之后Oracledb成功安装。这样的解脱!