単純なnode.jsサーバーとそのアプリケーションが実行され、Oracleデータベースに接続する必要があります。そのため、私はnode-oracledb
ドライバを使用することに決めましたが、インストールにいくつか問題があります。私はOracle webpageの指示とgithubの指示に従ったが、私はまだ以下のエラーが出る。node-oracledbのインストール中にエラーが発生しました
私の環境設定:
- のWindows 8.1 Proの64ビット
- のNode.jsのv6.4.0
- NPMのv3.10.3
- MSのVisual Studio 2013 Communityエディション
- PythonのV2。 7.12
- Oracleインスタント・クライアント(基本+ SDK)v12.1.0.2.0
ノード、PythonおよびOracle Instant ClientフォルダはPATH変数に含まれています。 OCI_LIB_DIRおよびOCI_INC_DIRは、githubの指示に従って設定されます。ここで
が問題だ:私はコマンドnpm install oracledb -g
を実行すると、次のエラーが発生します。
> [email protected] install C:\Users\pr\AppData\Roaming\npm\node_modules\ora
cledb
> node-gyp rebuild
C:\Users\pr\AppData\Roaming\npm\node_modules\oracledb>if not defined npm_c
onfig_node_gyp (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:\Users\pr\AppData\Roaming\npm\node_modules\oracledb\build\oracledb.vcxp
roj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props"
was not found. Confirm that the path in the <Import> declaration is correct, a
nd that the file exists on disk.
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:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:204: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:\Users\pr\AppData\Roaming\npm\node_modules\oracledb
gyp ERR! node -v v6.4.0
gyp ERR! node-gyp -v v3.3.1
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" "-g"
npm ERR! node v6.4.0
npm ERR! npm v3.10.3
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:\Users\pr\Development\Visual Studio 2013\npm-debug.log
私は本当にどこ解決のためのを見て知りません。そのエラーの原因は何ですか?ノード/ oracleクライアント/ pythonの間に既知の非互換性はありますか?
もう一つ:githubの指示は言う:
は、Microsoft Visual Studio環境変数が適切に に設定されていることを確認してください。 set PATHを使用してVisual Studio パスが含まれていることを確認します。これらが設定されていない場合は、環境を設定するためにvcvars64.bat(または、 32ビットバイナリで構築する場合はvcvars.bat)を使用します。
どのVS環境変数を設定し、どのVSパスをPATHに正確に含める必要がありますか?最新バージョンにNPMを更新
いや、運... – peterremec
同じ問題が、私はこのでたらめのNPMモジュールをあきらめるジュスト! – Wifsimster