Take the 2-minute tour ×

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)?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

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.

share|improve this answer
I have to actually install Visual Studio??? Outrageous. Na-ha. No way. I will have a look at Cheerio. Thanks for the info. –  Dbugger Jun 13 '13 at 21:53
@Dbugger To be fair, it works fine on linux/Mac because they generally have Python and a C++ compiler bundled with the OS install. For Windows, you need to obtain each yourself. Though, as noted in the node-gyp docs, the free Express edition of VS work fine. –  Jonathan Lonowski Jun 13 '13 at 22:10
Thank you for suggesting Cheerio. It's easy to install and use. –  Reegan May 22 at 1:53
add comment

Your Answer


