npm not installing jsdom in Windows

Enrique Moreno Tent picture Enrique Moreno Tent · Jun 13, 2013 · Viewed 9.9k times · Source

Im building an app in node.js with jQuery, but when I try to execute, it says it couldnt find module jsdom so, even though I dont understand why installing jQuery didnt install this dependency, I run manually npm install jsdom and I get this error message:

MSBUILD : error MSB3428: 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 t he component to the system path if it is installed elsewhere. [C:\Sites\myapp\node_modules\jsdom\node_modules\contextify\build\binding.sln]

I tried the first option, but still didnt help. What am I (missing|doing wrong)?

Answer

AndyD picture AndyD · Jun 13, 2013

You're not the only one having issues with installing jsdom on windows. You could try these instructions: http://www.steveworkman.com/node-js/2012/installing-jsdom-on-windows/

or use Cheerio which is easier to install on windows and does a similar job.