错误:oracledb@0.6.0安装:`node-gyp rebuild`,同时安装oracledb模块 [英] Error: oracledb@0.6.0 install: `node-gyp rebuild` while installing oracledb module

查看:249
本文介绍了错误:oracledb@0.6.0安装:`node-gyp rebuild`,同时安装oracledb模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上工作。我已经尝试了一些在这里和那里提到的解决方案,但没有什么似乎工作。
我试图安装oracledb模块使用命令npm install oracledb,但我得到以下错误:

I am working on Windows 7. I have tried a number of solutions mentioned here and there, but nothing seems to work. I am trying to install oracledb module using the command "npm install oracledb", but i get the following error:

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

以前有人遇到过吗?

推荐答案

现在问题已解决。有一些问题,我的python变量,我已经设置到其他目录。一旦python变量设置,它抛出一些错误,我的Visual Studio,说找不到stdio.h。我不得不修复我的Visual Studio安装,因为我相信有一些C ++ Core库的问题。
Oracledb安装成功后。这样的救济!

The issue is resolved now. There was some problem with my python variable, which i had set to some other directory. Once the python variable was set, it threw some error with my Visual Studio, saying cannot find "stdio.h". I had to repair my Visual Studio Installation, as i believe there was some issues with C++ Core libraries. Oracledb installed successfully after that. Such a relief!

这篇关于错误:oracledb@0.6.0安装:`node-gyp rebuild`,同时安装oracledb模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆