Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Install fails on Win 7 x64 with VS2010 & VS2013 (or just VS2013) #110

Closed
nickbuller opened this issue Apr 3, 2014 · 9 comments
Closed

Comments

@nickbuller
Copy link

Hi,

When VS2013 is installed you get the following error:
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [C:\Source\POC\ExpressApp1\node_modules\contextify\build\contextify.vcxproj]

I've identified a way to fix (well works for me) this looks to be that GYP is not generating correct project options for VS2013. To resolve you just: -

  1. npm set rollback false
  2. npm install contextify (which will fail)
  3. open up node_modules\contextify\build\binding.sln with VS2013 (this will upgrade the project from VS2010 -> VS2013)
  4. cd node_modules\contextify
  5. node-gyp build
  6. npm install contextify

Then you can npm install your modules that are defendant on contextify.

Hope this helps.

Nick

@nickbuller
Copy link
Author

Also...
7. copy contextify.node from .\contextify\build\Release to contextify\build.
2.1 cd contextify && node-gyp configure

@koistya
Copy link

koistya commented Apr 18, 2014

👍 Waiting for a fix..

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...". [node_modules\contextify\build\contextify.vcxproj]

@koistya
Copy link

koistya commented Apr 18, 2014

@kkoopa, @brianmcd is there a way I can help fixing it? I could upgrade .vcxproj..

@brianmcd
Copy link
Owner

I don't have any experience with node + windows, but I don't think there's anything to fix in Contextify. If there's an issue, it seems like this would be a node-gyp issue.

@koistya
Copy link

koistya commented Apr 18, 2014

There is no .vcxproj file in node-gyp project as well. @brianmcd, I'm wondering where it could come from..

@brianmcd
Copy link
Owner

My best guess is that gyp generates that file.

@koistya
Copy link

koistya commented Apr 19, 2014

I was able to install contextify on Windows 8.x by using these steps:

  • Install and use Node.js x86 instead of x64
  • Install Visual Studio 2010 Express + SP1
  • Run call "%VS100COMNTOOLS%vsvars32.bat" in Node.js console, before installing contextify

@Srokap
Copy link

Srokap commented Oct 20, 2014

@koistya Thanks a lot for your solution. It helped me on Windows 8.1 x64 to switch to x86 version of node. Builds don't crash anymore. In my case it was actually ws library as a dependency of socket.io, but the same error.

@alex6o
Copy link

alex6o commented Dec 26, 2014

@koistya the solution works great! thx!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants