TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
453 stars 141 forks source link

fatal error LNK1127: library is corrupt #61

Closed JordanDrakinite closed 7 years ago

JordanDrakinite commented 7 years ago

I need node-ffi for my project, which also needs ref. However, when I run the command npm install ref it builds binding.cc and begins win_delay_load_hook.c, however gets the error: C:\Users\user\.node-gyp\6.7.0\Release\node.lib : fatal error LNK1127: library is corrupt [C:\Users\user\node_modules\ref\build\binding.vcxproj] Failed at the ref@1.3.2 install script 'node-gyp rebuild'. npm-debug.log.txt Do you have any idea how to fix this? Thanks very much...

EDIT: Updated Node.JS to 7.0 and installation worked. I think that there was some problem with win_delay_load_hook.cc because when installing from the previous version of Node, it said .c instead of .cc. Going to see if I can close this thread