在Windows系统

时间:2017-01-19 21:25:43

标签: node.js npm node-oracle oracledb oracledb-npm

您好我正在尝试在我的Windows系统上为我的项目安装node-oracledb。我遵循了给定link中提到的确切过程,并使用给定的youtube video来安装相同的过程。当我运行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. Error while installing node-oracledb

  2. Error: oracledb@0.6.0 install: node-gyp rebuild while installing oracledb module

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

0 个答案:

没有答案