-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
error C2373: '__pfnDliNotifyHook2': redefinition; #972
Comments
|
Thanks a lot, @addaleax 👍 Something wrong happened:
after So I did that:
It works, finally |
That does not look like something that should happen. Do you still have the |
Let me do it again.
I found that there is no "src" folder in "node-gyp", so the wrong happened when i use
|
Is that a typo? The directory is called 'node-gyp', not 'node_gyp'. |
Yeah, its a typo I have edited, i'm so sorry. @bnoordhuis |
No problem. Just to be sure, can you delete your node_modules directory and install npm@next again? If you still can't build ref, can you post the full build log of |
I found a workaround, go to I think this is due to using npm-windows-upgrade. It guides to use First I had a problem that the upgrade was installing Anyway, now I'm finally able to build. :) |
fwiw |
@rvagg I think I may have the same issue with npm
Do you know if this issue might affect |
yep, you need 2.15.9: https://github.com/npm/npm/releases/tag/v2.15.9 |
@rvagg That did the trick, Thank you! |
Had the same issue, |
npm -g install npm@next appears to be the magic sauce. Thanks for posting that! |
Same here. I tried to install the oracledb module and got the same |
|
|
For me |
What shall I do if I don't want to use next? Because I hate flatten dependencies. |
@XadillaX It’s been a while since you had to use |
npm install for these versions is failing due to a bug that causes installation of native modules to fail with the 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:\projects\tedious\node_modules\sspi-client\build\sspi-client.vcxproj] This seems to be a known issue with certain npm/node-gyp versions: nodejs/node-gyp#972 nodejs/node#7286 Fixing this by installing the latest version of npm before running the tests.
just to note that npm install -g npm@next broke my npm x.x Need to say that i'm using nvm to install and use node 5.3.0 as my old project needs. And the first issue i had was installing node-oracledb. This project worked months ago, and it still works in my macosx but in windows i'm with these errors. Will try to install node 5.3.0 and use just npm install -g npm as @jasonswearingen suggested |
note: most of the workarounds here recommend upgrading node-gyp by upgrading npm, which is fine. But in some cases users may instead wish to upgrade just node-gyp, which also fixes this issue (since the underlying bug was fixed in #952). |
@springmeyer I am using |
(Edited) The error is happening in
which was fixed/changed in
It looks like that was installed because Update: Ah, I think I finally found it! The culprit was |
…e node v0.10.x support
The text was updated successfully, but these errors were encountered: