contextify
contextify copied to clipboard
fatal error LNK1127: library is corrupt thrown in node-v0.12.7 on installation
I found that contextify installation fails on the following environment:
- Windows 10 Pro 64-bit
- Microsoft Visual Studio Express 2013 for Windows Desktop - ENU with Update 5
- VS 2012 makes no difference.
- Python 2.7.10 (64-bit)
- Node v0.12.7-x64
- 32-bit version makes no difference.
C:\Users\Donghwan>node -v && npm -v
v0.12.7
2.11.3
C:\Users\Donghwan>npm uninstall contextify -g && npm install contextify -g
unbuild [email protected]
|
> [email protected] install C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify
> node-gyp rebuild
C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify>if not defined npm_config_node_gyp (node "D:\development\nodejs\node-v0.12.7-x64\node_mo
dules\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.
contextify.cc
C:\Users\Donghwan\.node-gyp\0.12.7\Release\node.lib : fatal error LNK1127: library is corrupt [C:\Users\Donghwan\AppData\Roaming\npm\node_modules\con
textify\build\contextify.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\development\nodejs\node-v0.12.7-x64\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "D:\\development\\nodejs\\node-v0.12.7-x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\\development\\nodejs\\node-v0.12.7-x64\\\\node.exe" "D:\\development\\nodejs\\node-v0.12.7-x64\\node_modules\\npm\\bin\\npm-cli.js"
"install" "contextify" "-g"
npm ERR! node v0.12.7
npm ERR! npm v2.11.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! This is most likely a problem with the contextify 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 their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Donghwan\npm-debug.log
C:\Users\Donghwan>
Interestingly, I also found that it works with Node v0.12.6 including 0.10.x and 0.12.x except 0.12.7. So I'm not sure where the issue lies. Should I report this issue to nodejs/node as well?
C:\Users\Donghwan>node -v && npm -v
v0.12.6
2.11.2
C:\Users\Donghwan>npm uninstall contextify -g && npm install contextify -g
unbuild [email protected]
|
> [email protected] install C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify
> node-gyp rebuild
C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify>if not defined npm_config_node_gyp (node "D:\development\nodejs\node-v0.12.6-x64\node_mo
dules\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.
contextify.cc
Creating library C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify\build\Release\contextify.lib and object C:\Users\Donghwan\AppData
\Roaming\npm\node_modules\contextify\build\Release\contextify.exp
Generating code
Finished generating code
contextify.vcxproj -> C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify\build\Release\\contextify.node
[email protected] C:\Users\Donghwan\AppData\Roaming\npm\node_modules\contextify
├── [email protected]
└── [email protected]
C:\Users\Donghwan>
Doesn't seem like a Contextify issue.