0

您好我正在尝试在我的 Windows 系统上为我的项目安装node-oracledb 。我已经按照给定链接中提到的确切过程进行了操作,并且还使用了给定的youtube 视频进行了安装。当我运行时npm install oracle-db出现以下错误

    465 verbose stack Error: oracledb@1.12.2 install: `node-gyp rebuild`
    465 verbose stack Exit status 1
    465 verbose stack     at EventEmitter.<anonymous> (C:\Users\theon\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279:16)
    465 verbose stack     at emitTwo (events.js:106:13)
    465 verbose stack     at EventEmitter.emit (events.js:191:7)
    465 verbose stack     at ChildProcess.<anonymous> (C:\Users\theon\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
    465 verbose stack     at emitTwo (events.js:106:13)
    465 verbose stack     at ChildProcess.emit (events.js:191:7)
    465 verbose stack     at maybeClose (internal/child_process.js:877:16)
    465 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
    466 verbose pkgid oracledb@1.12.2
    467 verbose cwd C:\Program Files\nodejs
    468 error Windows_NT 10.0.14393
    469 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\theon\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "oracledb"
    470 error node v6.9.4
    471 error npm  v4.1.1
    472 error code ELIFECYCLE
    473 error oracledb@1.12.2 install: `node-gyp rebuild`
    473 error Exit status 1
    474 error Failed at the oracledb@1.12.2 install script 'node-gyp rebuild'.
    474 error Make sure you have the latest version of node.js and npm installed.
    474 error If you do, this is most likely a problem with the oracledb package,
    474 error not with npm itself.
    474 error Tell the author that this fails on your system:
    474 error     node-gyp rebuild
    474 error You can get information on how to open an issue for this project with:
    474 error     npm bugs oracledb
    474 error Or if that isn't available, you can get their info via:
    474 error     npm owner ls oracledb
    474 error There is likely additional logging output above.
    475 verbose exit [ 1, true ]

我的node版本是v6.9.4npm版本是v4.1.1。我也使用 python 版本2.7visual studio 12.

已经有两个与此问题相关的问题,stackoverflow 上没有提供相关的答案。问题如下

  1. 安装 node-oracledb 时出错

  2. 错误:oracledb@0.6.0 安装:node-gyp rebuild安装 oracledb 模块时

有人可以帮我解决这个问题吗?

4

0 回答 0