What is the least invasive thing I can install to get Node-gyp to run?

jnm2 asked:

I’m trying to host https://github.com/spark/spark-server on a Windows Server 2012 R2 box.

I installed git, node and python. When I get to the npm install step, I get the following message:

MSBUILD : error MBS3428: Could not load the Visual C++ component
“VCBuild.exe”. To fix this, 1) install the .NET Framework 2.0 SDK, 2)
install Microsoft Visual Studio 2005 or 3) add the location of the
component to the system path if it is installed elsewhere.
[C:nodejsspark-serverjsmode_modulesursabuildbinding.sln]

This isn’t a dev box and I really don’t want to install either. But if I do, I’d rather not install outdated SDKs and IDEs. What is the recommended way to deal with this?

EDIT: Found the answer. Install:

My answer:


Some node packages incorporate native code and therefore must be compiled for the target system, so you need to have a compiler installed.

The free version of Visual Studio Express 2013 for Windows (not for Web) should be sufficient.

Once installed, run your installation within the Visual Studio Command Prompt (x64), and with a slight modification:

npm install --msvs_version=2013

The real path of least resistance, of course, is to deploy to a Linux server. While the same is true of Linux, that you usually need a compiler, many distributions provide precompiled packages for the more popular software.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.