-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Error when using NPM installation #466
Comments
Hi, This error should be caused by nodejs/node-gyp#956. I could compile oracledb by installing an npm version with that issue solved. I installed the latest version globally: npm install -g npm@latest |
Installed latest NPM which corrected original error. Now receiving multiple LINK2001 errors. "C:\WebstormProjects\NodeCore\node_modules\oracledb\build\binding.sln" (default target) (1) ->
Time Elapsed 00:00:05.79 If someone could point in the direction if I am doing something wrong. Utilizing Oracle DB with a node app is the last task I have to complete for a POC. |
@njbeach It doesn't look like you set the environment variables and/or have an Oracle client. See https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instwin |
I've set both variables correctly but it stops in the middle of the process. Please, take a look:
oracledb@1.11.0 install C:\dev\git\qotd\node_modules\oracledb C:\dev\git\qotd\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) |
@djejaquino this issue is closed. Consider opening a new issue? You mention "both" variables, but there are actually three: don't forget to set Some background info about what versions, platforms, compilers and the important info about how you set things and what you ran might be useful to give. |
Using Oracle Client 11.2, Visual studio 2015 Enterprise, Python 2.7, NPM 3.9.5, and node 6.2.2 on a windows 7 laptop. When I use the npm install command I recieve the following error:
C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34): error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers [C:\Users\nbeach\AppData\Roaming\npm\node_modules\oracledb\build\oracledb.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\delayimp.h(134): note: see declaration of '__pfnDliNotifyHook2'
gyp ERR! build error
gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\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_process.js:204:12)
The text was updated successfully, but these errors were encountered: