2016-10-12 5 views
3

WindowsマシンのノードJを使用してOracleデータベースに接続するにはどうすればよいですか?WindowsマシンのノードJを使用してOracleデータベースに接続する方法

データベースは別のマシンに存在します。

私はhttps://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instwin] [次のURLを使用してインストールしようとしましたが、エラーでeneded。

以下この

に私を助けてください、私が得たエラーです。

(node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (node "" rebuild) 
Building the projects in this solution one at a time. To enable parallel build, 
please add the "/m" switch. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformTo 
olsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 w 
as not found. Install the required version of Windows SDK or change the SDK ver 
sion in the project property pages or by right-clicking the solution and select 
ing "Retarget solution". [C:\Program Files\nodejs\node_modules\oracledb\build\o 
racledb.vcxproj] 
gyp ERR! build error 
gyp ERR! stack Error: `msbuild` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ 
npm\node_modules\node-gyp\lib\build.js:276:23) 
gyp ERR! stack  at emitTwo (events.js:87:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:172:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_proces 
s.js:200:12) 
gyp ERR! System Windows_NT 6.3.9600 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej 
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Program Files\nodejs\node_modules\oracledb 
gyp ERR! node -v v4.6.0 
gyp ERR! node-gyp -v v3.4.0 
gyp ERR! not ok 
npm ERR! Windows_NT 6.3.9600 
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 v4.6.0 
npm ERR! npm v3.10.8 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, 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 information on how to open an issue for this project with: 
npm ERR!  npm bugs oracledb 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls oracledb 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Program Files\nodejs\npm-debug.log 

ありがとうございます。

答えて

3

ステップの手順によって、このドキュメントの手順に従ってください。それは私のために働いた。

https://community.oracle.com/docs/DOC-931127 
0

これを実現するために、あなたは 'ORACLEDB' NPMモジュールが必要です。

下記を参照してください。

https://blogs.oracle.com/opal/entry/introducing_node_oracledb_a_node

+0

私はこれが、役に立たないとみました。 Gyp ERRを取得する!ビルドエラー。 わかっている場合は、手順を教えてください。 –

+0

どのバージョンのOracleを使用していますか? –

+0

Oracle Database 11gリリース11.2.0.4.0 - 64ビットを使用しています –

関連する問題