質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Oracle Database 11g

Oracle DatabaseはRDBMSの商品です。具体的な発売商品として知られているのが、 Oracle9i、Oracle10g、Oracle 11gとOracle 12cです。

Q&A

解決済

2回答

3986閲覧

npm oracledbが失敗する

d_ois

総合スコア5

npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Oracle Database 11g

Oracle DatabaseはRDBMSの商品です。具体的な発売商品として知られているのが、 Oracle9i、Oracle10g、Oracle 11gとOracle 12cです。

0グッド

0クリップ

投稿2017/03/27 08:41

###前提・実現したいこと
npmにてoracledbがインストールできない。

1.Install NodeJS version 6.10.0 x64.
2.Reboot.
3.Add folder C:\Test,
4.Opened CMD prompt (run as Administrator)
5.cd c:\test
6.npm install --global npm
7.npm install --global --production windows-build-tools
8.npm install instantclient
9.on Environment Variables add Path c:\test\instantclient;
set OCI_LIB_DIR=c:\test\instantclient\sdk\lib\msvc
set OCI_INC_DIR=c:\test\instantclient\sdk\include
10.reboot.
11.npm install oracledb

上記を実行しています。

###発生している問題・エラーメッセージ

$ npm install oracledb
npm WARN lifecycle The node binary used for scripts is C:\Program Files\Nodist\bin\node.exe but npm is using C:\Program Files\Nodist\v\6.10.0\node.exe itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

oracledb@1.13.0 install C:\node\node_modules\oracledb
node-gyp rebuild

C:\node\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\Program Files\Nodist\bin\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
このソリューション内のプロジェクトを 1 度に 1 つずつビルドします。並行ビルドを有効にするには、"/m" スイッチを追加してください。
njsOracle.cpp
njsPool.cpp
njsConnection.cpp
njsResultSet.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsConnection.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsResultSet.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
njsMessages.cpp
njsIntLob.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsIntLob.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiEnv.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiEnv.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiEnvImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiEnvImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiException.cpp
dpiExceptionImpl.cpp
dpiConnImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiConnImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiConnImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiDateTimeArrayImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiUtils.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiDateTimeArrayImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiPoolImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiPoolImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiStmtImpl.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiStmt.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiStmtImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiUtils.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiUtils.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiUtils.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiLob.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiLob.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiCommon.cpp
..\src\dpi\src\dpiCommon.cpp(28): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
win_delay_load_hook.cc
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsPool.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsOracle.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\Nodist\bin\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\Nodist\v\6.10.0\node.exe" "C:\Program Files\Nodist\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node\node_modules\oracledb
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm WARN node@1.0.0 No description
npm WARN node@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! oracledb@1.13.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oracledb@1.13.0 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! A complete log of this run can be found in:
npm ERR! C:\Users\u12790\AppData\Roaming\npm-cache_logs\2017-03-27T08_37_26_559Z-debug.log

###該当のソースコード

ここにご自身が実行したソースコードを書いてください

###試したこと
課題に対してアプローチしたことを記載してください

###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

nodejsの再インストールから全て行うと、解決できました

投稿2017/03/28 06:31

d_ois

総合スコア5

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

fatal error C1083: Cannot open include file: 'oci.h': No such file or directory

ということですが、Oracle Instant Client は、インストールされていますか?

投稿2017/03/27 11:02

CHERRY

総合スコア25171

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

d_ois

2017/03/28 00:40

ご回答有難う御座います インストールして、パスも通しています。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問